Skip to content

[Tests] Unit test coverage for ThreadSafeFunction class #1064

Closed

Description

@JckXia
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

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 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.

  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. JckXia commented on Jan 27, 2023

    @JckXia
    MemberAuthor

    Test coverage completed follow #1251 and #1249

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