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

Method from

test/common/wpt.js:350–354  ·  view source on GitHub ↗

* @param {string} mod * @param {string} filename * @param {StatusRule[]} rules * @returns {ReturnType []}

(mod, filename, rules)

Source from the content-addressed store, hash-verified

348 * @returns {ReturnType<WPTTestSpec['getMeta']>[]}
349 */
350 static from(mod, filename, rules) {
351 const spec = new WPTTestSpec(mod, filename, rules);
352 const meta = spec.getMeta();
353 return meta.variant?.map((variant) => new WPTTestSpec(mod, filename, rules, variant)) || [spec];
354 }
355
356 /**
357 * Check if a subtest should be skipped by name.

Callers 15

lint-sh.mjsFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
getValidateFactoryFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
benchCreationFunction · 0.45
mainFunction · 0.45

Calls 2

getMetaMethod · 0.95
mapMethod · 0.65

Tested by 10

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36