node-addon-api icon indicating copy to clipboard operation
node-addon-api copied to clipboard

[Test] Unit test coverage for Env class

Open JckXia opened this issue 4 years ago • 3 comments

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<Value> RunScript(const char *utf8script)
Covered(See run_script.cc) MaybeOrValue<Value> RunScript(const std::string& utf8script)
Covered(See run_script.cc) MaybeOrValue<Value> RunScript(String script)
Covered(See env_cleanup.cc) CleanupHook<Hook> 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)

JckXia avatar Aug 22 '21 20:08 JckXia

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.

github-actions[bot] avatar Dec 24 '21 00:12 github-actions[bot]

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.

github-actions[bot] avatar Apr 13 '22 00:04 github-actions[bot]

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.

github-actions[bot] avatar Aug 02 '22 00:08 github-actions[bot]

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.

github-actions[bot] avatar Nov 11 '22 00:11 github-actions[bot]

Completed following #1254

JckXia avatar Jan 03 '23 21:01 JckXia