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

Function checkLoop

test/common/report.js:84–92  ·  view source on GitHub ↗
(actual, rest, expect)

Source from the content-addressed store, hash-verified

82
83 fields.forEach((field) => {
84 function checkLoop(actual, rest, expect) {
85 actual = actual[rest.shift()];
86 if (rest.length === 0 && actual !== undefined) {
87 assert.strictEqual(actual, expect);
88 } else {
89 assert(actual);
90 checkLoop(actual, rest, expect);
91 }
92 }
93 let actual, expect;
94 if (Array.isArray(field)) {
95 [actual, expect] = field;

Callers 1

_validateContentFunction · 0.85

Calls 2

assertFunction · 0.50
shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…