Skip to content

[Tests] Add test coverage for PropertyDescriptors #986

Closed
@JckXia

Description

@JckXia
class methods
PropertyDescriptor PropertyDescriptor(napi_property_descriptor desc)
Covered #610 template <Napi::PropertyDescriptor::GetterCallback Getter> static PropertyDescriptor Napi::PropertyDescriptor::Accessor(__name, napi_property_attributes attributes = napi_default, void * data = nullptr)
Covered #610 template<GetterCallback Getter, SetterCallback Setter> static PropertyDescriptor Accessor(__name, napi_property_attributes attributes = napi_default , void * data = nullptr)
Covered #343 static PropertyDescriptor Accessor(__ name, Getter getter , napi_property_attributes attributes = napi_defaults, void * data = nullptr)
Covered #652 PropertyDescriptor Napi::PropertyDescriptor::Function( _-name, Callable cb, napi_property_attributes attributes = napi_default, void * data = nullptr)
Covered #65 PropertyDescriptor Value(__name, napi_value value, napi_property_attributes attributes = napi_default)
Covered #65 PropertyDescriptor Value(Name name, Value value, napi_property_attributes attributes = napi_default)

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