MCPcopy Index your code
hub / github.com/nodejs/llhttp / runSingleTest

Function runSingleTest

test/md-test.ts:93–103  ·  view source on GitHub ↗
(
    location: string, ty: TestType, meta: Metadata, 
    input: string, expected: readonly (string | RegExp)[]
  )

Source from the content-addressed store, hash-verified

91 const groups = md.parse(raw);
92
93 function runSingleTest(
94 location: string, ty: TestType, meta: Metadata,
95 input: string, expected: readonly (string | RegExp)[]
96 ): void {
97 test(`should pass for type="${ty}" (location=${location})`, { timeout: 60000 }, async () => {
98 const binary = await buildMode(ty, meta);
99 await binary.check(input, expected, {
100 noScan: meta.noScan === true,
101 });
102 });
103 }
104
105 function runTest(test: Test) {
106 describe(test.name + ` at ${name}.md:${test.line + 1}`, () => {

Callers 1

runTestFunction · 0.85

Calls 1

buildModeFunction · 0.85

Tested by

no test coverage detected