Skip to content

[Test] Unit test coverage for CallbackInfo #1048

Description

@JckXia
class methods
CallbackInfo
Covered indirectly via call to Function::New CallbackInfo(napi_env env, napi_callback_info info)
Covered indreictly via call to create array buffers, etc Napi::Env Env() const
Covered Value NewTarget() const
Covered (see function.cc) bool IsConstructCall() const
Covered, function used by many tests size_t Length() const
Covered, function used by various tests const Value operator[] (size_t index) const
Covered, (see addon_data.cc) Value This() const
Covered, see function.cc void * Data() const
void SetData(void * Data)

Just wondering if it's worth writing seperate unit tests for this class?

Activity

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