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

Function runTest

test/parallel/test-inspector.js:294–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294async function runTest() {
295 const child = new NodeInstance();
296 checkListResponse(await child.httpGet(null, '/json'));
297 checkListResponse(await child.httpGet(null, '/json/list'));
298 checkVersion(await child.httpGet(null, '/json/version'));
299
300 await child.httpGet(null, '/json/activate').catch(checkBadPath);
301 await child.httpGet(null, '/json/activate/boom').catch(checkBadPath);
302 await child.httpGet(null, '/json/badpath').catch(checkBadPath);
303
304 const session = await child.connectInspectorSession();
305 await testBreakpointOnStart(session);
306 await testBreakpoint(session);
307 await testI18NCharacters(session);
308 await testCommandLineAPI(session);
309 await session.runToCompletion();
310 const expectedExitCode = 55;
311 const { exitCode } = await child.expectShutdown();
312 assert.strictEqual(
313 exitCode,
314 expectedExitCode,
315 `Expected exit code to be ${expectedExitCode} but got ${expectedExitCode}.`
316 );
317}
318
319runTest().then(common.mustCall());

Callers 1

test-inspector.jsFile · 0.70

Calls 10

httpGetMethod · 0.95
expectShutdownMethod · 0.95
checkListResponseFunction · 0.85
checkVersionFunction · 0.85
testI18NCharactersFunction · 0.85
testCommandLineAPIFunction · 0.85
runToCompletionMethod · 0.80
testBreakpointOnStartFunction · 0.70
testBreakpointFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…