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

Function main

deps/v8/tools/test262-results-parser.js:23–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 path = require('path');
22
23function main() {
24 if (process.argv.length === 2) {
25 throw new Error('File name required as first arg.');
26 }
27
28 var fileName = process.argv[2],
29 fullPath = path.join(__dirname, fileName),
30 results = require(fullPath)[0].results,
31 tests = new Set();
32 for (let result of results) {
33 let [_, ...test] = result.name.split('/');
34 tests.add(` '${test.join('/')}': [FAIL],`);
35 }
36
37
38 [...tests].sort().forEach(i => console.log(i));
39}
40
41main();

Callers 1

Calls 7

sortMethod · 0.80
addMethod · 0.65
forEachMethod · 0.65
requireFunction · 0.50
joinMethod · 0.45
splitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected