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

Function getTapCoverageFixtureReport

test/parallel/test-runner-coverage-thresholds.js:22–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22function getTapCoverageFixtureReport() {
23
24 const report = [
25 '# start of coverage report',
26 '# --------------------------------------------------------------------------------------------',
27 '# file | line % | branch % | funcs % | uncovered lines',
28 '# --------------------------------------------------------------------------------------------',
29 '# test | | | | ',
30 '# fixtures | | | | ',
31 '# test-runner | | | | ',
32 '# coverage.js | 78.65 | 38.46 | 60.00 | 12-13 16-22 27 39 43-44 61-62 66-67 71-72',
33 '# invalid-tap.js | 100.00 | 100.00 | 100.00 | ',
34 '# v8-coverage | | | | ',
35 '# throw.js | 71.43 | 50.00 | 100.00 | 5-6',
36 '# --------------------------------------------------------------------------------------------',
37 '# all files | 78.35 | 43.75 | 60.00 | ',
38 '# --------------------------------------------------------------------------------------------',
39 '# end of coverage report',
40 ].join('\n');
41
42
43 if (common.isWindows) {
44 return report.replaceAll('/', '\\');
45 }
46
47 return report;
48}
49
50const fixture = fixtures.path('test-runner', 'coverage.js');
51const reporter = fixtures.fileURL('test-runner/custom_reporters/coverage.mjs');

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…