Skip to content

[Tests] add test docuemnt coverage for FunctionReference class #989

Closed

Description

@JckXia
class methods
FunctionReference();
FunctionReference(napi_env env, napi_ref ref)
FunctionReference(Reference&& other)
FunctionReference& operator =(Reference&& other)
FunctionReference(FunctionReference&& other)
FunctionReference& operator =(FunctionReference&& other)
FunctionReference(Reference&& other)
FunctionReference& operator =(Reference&& other)
FunctionReference(FunctionReference&& other)
FunctionReference& operator =(FunctionReference&& other)
FunctionReference(const FunctionReference&) = delete
FunctionReference& operator =(FunctionReference&) = delete
Napi::Value Call(const std::initializer_list<napi_value>& args) const
Napi::Value Call(const std::vector<napi_value>& args) const
Napi::Value Call(napi_value recv, const std::initializer_list<napi_value>& args) const
Napi::Value Call(napi_value recv, const std::vector<napi_value>& args) const
Napi::Value Call(napi_value recv, size_t argc, const napi_value* args) const;
Napi::Value MakeCallback(napi_value recv, const std::initializer_list<napi_value>& args) const
Napi::Value MakeCallback(napi_value recv, const std::vector<napi_value>& args) const
Napi::Value MakeCallback(napi_value recv, size_t argc, const napi_value * args) const
Object New(const std::vector<napi_value>& args) const
Object New(const std::vector<napi_value>& args) const;
FunctionalReference Weak(Function value)
FunctionalReference Persistent(Function value)

Note, this class is used by other test suites. Will add a more comprehensive test suite for FunctionReference.

Activity

  1. github-actions commented on Aug 4, 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 Nov 3, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions