Repository navigation
[Tests] Unit test coverage for ThreadSafeFunction class #1064
Copy link
Copy link
Closed
Description
| class | methods |
|---|---|
| ThreadSafeFunction | |
| Covered (threadsafe_function_ptr.cc) | ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount) |
| ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context) | |
| ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, Finalizer finalizeCallback) | |
| Covered( see threadsafe_function_sum.cc) | ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, Finalizer finalizeCallback, FinalizerDataType* data) |
| ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context, Finalizer finalizeCallback) | |
| Covered(see threadsafe_function.cc) | ThreadSafeFunction::New(napi_env env, const Function& callback, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context, Finalizer finalizeCallback, FinalizerDataType* data) |
| ThreadSafeFunction::New(napi_env env, const Function& callback, const Object& resource, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount) | |
| ThreadSafeFunction::New(napi_env env, const Function& callback, const Object& resource, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context) | |
| Covered(see threadsafe_function_unref.cc) | ThreadSafeFunction::New(napi_env env, const Function& callback,const Object& resource, ResourceString resName, size_t maxQueueSize, size_t initialThreadCount, Finalizer finalizeCallback) |
| ThreadSafeFunction::New(napi_env env, const Function& callback, const Object& resource, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, Finalizer finalizeCallback,FinalizerDataType* data) | |
| Covered(See threadsafe_function_ctx.cc) | ThreadSafeFunction::New(napi_env env, const Function& callback, const Object& resource, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context, Finalizer finalizeCallback) |
| ThreadSafeFunction::New(napi_env env, const Function& cb, const Object& resource, ResourceString resourceName, size_t maxQueueSize, size_t initialThreadCount, ContextType* context, Finalizer finalizeCb, FinalizerDataType* data) | |
| operator napi_threadsafe_function() const | |
| Covered (see threadsafe_function.cc) | napi_status BlockingCall() const |
| Covered( see threadsafe_function_sum.cc) | napi_status BlockingCall(Callback cb) const |
| Covered (see threadsafe_function.cc) | napi_status BlockingCall(DataType*data, Callback cb) const |
| napi_status NonBlockingCall() const | |
| napi_status NonBlockingCall(Callback cb) const | |
| Covered(see threadsafe_function.cc) | napi_status NonBlockingCall(DataType* data, Callback cb) const |
| Covered | void Ref(npai_env env) const |
| Covered(see threadsafe_function_unref.cc) | void Unref(napi_env env) const |
| Used by threadsafe_function.cc | napi_status Acquire() const |
| Used by threadsafe_function.cc | napi_status Release() |
| Used by threadsafe_function.cc | napi_status Abort() |
| Used by threadsafe_function.cc | ConvertibleContext GetContext() const |
Reactions are currently unavailable
Activity
github-actions commentedon Dec 24, 2021
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 commentedon Apr 11, 2022
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 commentedon Aug 2, 2022
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.
JckXia commentedon Jan 27, 2023
Test coverage completed follow #1251 and #1249