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

[Tests] TypedThreadSafeFunctions unit test coverage

Open JckXia opened this issue 3 years ago • 5 comments

class methods
TypedThreadSafeFunction
TypedThreadSafeFunction New(napi_env env, ResourceString res, size_t maxQueueSize, size_t initThreadCnt, ContextType* ctx = nullptr)
TypedThreadSafeFunction New(napi_env env, const Object& res, ResourceString resName, size_t maxQueueSize, size_t initThread, ContextType * ctx = nullptr)
covered(typed_threadsafe_function_ctx.cc) TypedThreadSafeFunction New(napi_env env, ResourceString resName, size_t maxQSize, size_t initThreadCnt, ContextType * context, Finalizer finalizeCb, FinalizerDataType * data = nullptr)
Covered(see typed_threadsafe_function_sum.cc) TypedThreadSafeFunction New(napi_env env, const Object& res, ResourceString resName, size_t maxQSize, size_t initThreadCnt, ContextType * context, Finalizer finalizeCb, FinalizerDataType * data = nullptr)
Covered TypedThreadSafeFunction New(napi_env env, const Function& cb, ResourceString resName, size_t maxQSize, size_t initThreadCnt, ContextType * ctx= nullptr)
Covered(typed_threadsafe_function_ptr.cc) TypedThreadSafeFunction New(napi_env env, const Function& cb, const Object& res, ResourceString resName, size_t maxQSize, size_t initThreadCnt, ContextType * ctx= nullptr)
Covered(typed_threadsafe_function.cc) TypedThreadSafeFunction New(napi_env, const Function& cb, ResourceString resName, size_t maxQSize, size_t initalThreadCnt, ContextType* ctx, Finalizer finalizeCb, FinalizerDataType* data = nullptr)
Covered(See typed_threadsafe_function_unref.cc) TypedThreadSafeFunction New (napi_env, CallbackType cb, const Object& res, ResourceString resName, size_t maxQSize, size_t initThreadCnt, ContextType* ctx, Finalizer finalizeCB, FinalizerDatType* data = nullptr)
Covered(see typed_threadsafe_function.cc) napi_status BlockingCall(DataType* data =nullptr) const
Covered(See typed_threadsafe_function.cc) napi_status NonBlockingCall(DataType* data =nullptr) const
Covered void Ref(napi_env env) const
Covered(see typed_threadsafe_function.cc) void Unref(napi_env env) const
Covered(See typed_threadsafe_function.cc) napi_status Acquire() const
Covered ( see typed_threadsafe_function.cc) napi_status Release()
Covered(see typed_threadsafe_function.cc) napi_status Abort()
Covered( see typed_threadsafe_function.cc) ContextType* GetContext() const

JckXia avatar Sep 17 '21 00:09 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]

Hi, can I take this up ?

hionnode avatar Jan 10 '22 17:01 hionnode

Hi, can I take this up ?

Yes, you can.

NickNaso avatar Jan 10 '22 17:01 NickNaso

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 11 '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]

Coverage complete following https://github.com/nodejs/node-addon-api/pull/1201

JckXia avatar Nov 17 '22 16:11 JckXia