MCPcopy Index your code
hub / github.com/nodejs/node / assert_true

Function assert_true

test/fixtures/wpt/resources/testharness.js:1543–1547  ·  view source on GitHub ↗

* Assert that ``actual`` is strictly true * * @param {Any} actual - Value that is asserted to be true * @param {string} [description] - Description of the condition being tested

(actual, description)

Source from the content-addressed store, hash-verified

1541 * @param {string} [description] - Description of the condition being tested
1542 */
1543 function assert_true(actual, description)
1544 {
1545 assert(actual === true, "assert_true", description,
1546 "expected true got ${actual}", {actual:actual});
1547 }
1548 expose_assert(assert_true, "assert_true");
1549
1550 /**

Callers 15

checkDataKeysFunction · 0.70
idlharness.jsFile · 0.70
SRIPreloadTestFunction · 0.70
EventWatcherFunction · 0.70
assert_function_nameFunction · 0.50
assert_function_lengthFunction · 0.50
assert_InstanceFunction · 0.50
prototypes.any.jsFile · 0.50
test_operationsFunction · 0.50

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected