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

Function assertEachNode

test/fixtures/snapshot/typescript.js:2779–2783  ·  view source on GitHub ↗
(nodes, test, message, stackCrawlMark)

Source from the content-addressed store, hash-verified

2777 }
2778 Debug.assertNever = assertNever;
2779 function assertEachNode(nodes, test, message, stackCrawlMark) {
2780 if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertEachNode")) {
2781 assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2782 }
2783 }
2784 Debug.assertEachNode = assertEachNode;
2785 function assertNode(node, test, message, stackCrawlMark) {
2786 if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertNode")) {

Callers

nothing calls this directly

Calls 5

shouldAssertFunctionFunction · 0.85
getFunctionNameFunction · 0.85
everyMethod · 0.80
concatMethod · 0.80
assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…