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

Function shouldRunSubTest

test/fixtures/wpt/common/subset-tests-by-key.js:50–59  ·  view source on GitHub ↗

* Check if `key` is in the subset specified in the URL. * @param {string} key * @returns {boolean}

(key)

Source from the content-addressed store, hash-verified

48 * @returns {boolean}
49 */
50 function shouldRunSubTest(key) {
51 if (key && subTestKeyPattern) {
52 var found = subTestKeyPattern.test(key);
53 if (exclude) {
54 return !found;
55 }
56 return found;
57 }
58 return true;
59 }
60 /**
61 * Only test a subset of tests with `?include=Foo` or `?exclude=Foo` in the URL.
62 * Can be used together with `<meta name="variant" content="...">`

Callers 1

subsetTestByKeyFunction · 0.70

Calls 1

testMethod · 0.45

Tested by

no test coverage detected