Skip to content

[Test] Unit test coverage for Env class #1050

Closed

Description

@JckXia
class methods
Env
Env(napi_env env)
Covered (See globalObject tests) Object Global() const
Value Undefined() const
Value Null() const
Covered(See error.cc) bool IsExceptionPending() const
Covered(See error.cc) Error GetAndClearPendingException
Covered(See run_script.cc) MaybeOrValue RunScript(const char *utf8script)
Covered(See run_script.cc) MaybeOrValue RunScript(const std::string& utf8script)
Covered(See run_script.cc) MaybeOrValue RunScript(String script)
Covered(See env_cleanup.cc) CleanupHook AddCleanupHook(Hook hook)
Covered(See env_cleanup.cc) CleanupHook<Hook,Arg> AddCleanupHook(Hook hook, Arg* arg);
Covered(See addon_data.cc) T* GetInstanceData()
Covered(See addon_data.cc) void SetInstanceData(T* data)
Covered(See addon_data.cc) void SetInstanceData(DataType* data, HintType* hint)

Activity

  1. github-actions commented on Dec 24, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  2. github-actions commented on Apr 13, 2022

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  3. github-actions commented on Aug 2, 2022

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  4. github-actions commented on Nov 11, 2022

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  5. JckXia commented on Jan 3, 2023

    @JckXia
    MemberAuthor

    Completed following #1254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions