MCPcopy Create free account
hub / github.com/nodejs/node / subsetTest

Function subsetTest

test/fixtures/wpt/common/subset-tests.js:51–57  ·  view source on GitHub ↗

* Only test a subset of tests with, e.g., `?1-10` in the URL. * Can be used together with ` ` * Sample usage: * for (const test of tests) { * subsetTest(async_test, test.fn, test.name); * }

(testFunc, ...args)

Source from the content-addressed store, hash-verified

49 * }
50 */
51 function subsetTest(testFunc, ...args) {
52 currentSubTest++;
53 if (shouldRunSubTest(currentSubTest)) {
54 return testFunc(...args);
55 }
56 return null;
57 }
58 self.shouldRunSubTest = shouldRunSubTest;
59 self.subsetTest = subsetTest;
60})();

Callers 9

showNodesFunction · 0.85
encodeFunction · 0.85
define_testsFunction · 0.85
define_testsFunction · 0.85
define_testsFunction · 0.85
run_testFunction · 0.85

Calls 2

testFuncFunction · 0.85
shouldRunSubTestFunction · 0.70

Tested by

no test coverage detected