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

Function assertScopeValues

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

Source from the content-addressed store, hash-verified

9const { NodeInstance } = require('../common/inspector-helper.js');
10
11function assertScopeValues({ result }, expected) {
12 const unmatched = new Set(Object.keys(expected));
13 for (const actual of result) {
14 const value = expected[actual.name];
15 assert.strictEqual(actual.value.value, value);
16 unmatched.delete(actual.name);
17 }
18 assert.deepStrictEqual(Array.from(unmatched.values()), []);
19}
20
21async function testBreakpointOnStart(session) {
22 console.log('[test]',

Callers 1

testBreakpointFunction · 0.70

Calls 4

keysMethod · 0.65
deleteMethod · 0.65
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…