node-addon-api
node-addon-api copied to clipboard
[Test] Unit test coverage for CallbackInfo
| 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?
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.
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.
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.
Completed following https://github.com/nodejs/node-addon-api/pull/1253