Skip to content

[Test] Unit test coverage for Env class #1050

@JckXia

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)

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