MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / TestMaybeOperatorOverload

Function TestMaybeOperatorOverload

test/maybe/check.cc:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void TestMaybeOperatorOverload(const CallbackInfo& info) {
28 Napi::Function fn_a = info[0].As<Function>();
29 Napi::Function fn_b = info[1].As<Function>();
30
31 assert(fn_a.Call({}) == fn_a.Call({}));
32 assert(fn_a.Call({}) != fn_b.Call({}));
33}
34
35void NormalJsCallback(const CallbackInfo& info) {
36 Napi::Function fn = info[0].As<Function>();

Callers

nothing calls this directly

Calls 1

CallMethod · 0.80

Tested by

no test coverage detected