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

Method plan

lib/internal/test_runner/test.js:318–327  ·  view source on GitHub ↗
(count, options = kEmptyObject)

Source from the content-addressed store, hash-verified

316 }
317
318 plan(count, options = kEmptyObject) {
319 if (this.#test.plan !== null) {
320 throw new ERR_TEST_FAILURE(
321 'cannot set plan more than once',
322 kTestCodeFailure,
323 );
324 }
325
326 this.#test.plan = new TestPlan(count, options);
327 }
328
329 get assert() {
330 if (this.#assert === undefined) {

Callers 15

runMethod · 0.45
postRunMethod · 0.45
reportMethod · 0.45
file-snapshots.jsFile · 0.45
unit.jsFile · 0.45
match.mjsFile · 0.45
more.mjsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected