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

Function assertScopeValues

test/parallel/test-inspector.js:43–58  ·  view source on GitHub ↗
({ result }, expected)

Source from the content-addressed store, hash-verified

41}
42
43function assertScopeValues({ result }, expected) {
44 const unmatched = new Set(Object.keys(expected));
45 for (const actual of result) {
46 const value = expected[actual.name];
47 if (value) {
48 assert.strictEqual(
49 actual.value.value,
50 value,
51 `Expected scope values to be ${actual.value.value} instead of ${value}.`
52 );
53 unmatched.delete(actual.name);
54 }
55 }
56 if (unmatched.size)
57 assert.fail(Array.from(unmatched.values()));
58}
59
60async function testBreakpointOnStart(session) {
61 console.log('[test]',

Callers 1

testBreakpointFunction · 0.70

Calls 5

keysMethod · 0.65
deleteMethod · 0.65
failMethod · 0.45
fromMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…