MCPcopy Create free account
hub / github.com/nodejs/nan / NAN_METHOD

Function NAN_METHOD

test/cpp/nannew.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54#define _(e) NAN_TEST_EXPRESSION(e)
55
56NAN_METHOD(testArray) {
57 Tap t(info[0]);
58
59 t.plan(3);
60
61 t.ok(_( New<Array>()->Length() == 0));
62 t.ok(_( New<Array>(7)->Length() == 7));
63 t.ok(_( assertType<Array>(New<Array>(7))));
64
65 info.GetReturnValue().SetUndefined();
66}
67
68NAN_METHOD(testBoolean) {
69 Tap t(info[0]);

Callers

nothing calls this directly

Calls 15

RunScriptFunction · 0.85
stringMatchesFunction · 0.85
NewOneByteStringFunction · 0.85
overloadedFunction · 0.85
MakeMaybeFunction · 0.85
planMethod · 0.80
ValueMethod · 0.80
ToLocalCheckedMethod · 0.80
FromJustMethod · 0.80
NewFunction · 0.50
GetExternalValueFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected