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

Function getSpecCoverageFixtureReport

test/parallel/test-runner-coverage.js:52–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52function getSpecCoverageFixtureReport() {
53
54 const report = [
55 '\u2139 start of coverage report',
56 '\u2139 --------------------------------------------------------------------------------------------',
57 '\u2139 file | line % | branch % | funcs % | uncovered lines',
58 '\u2139 --------------------------------------------------------------------------------------------',
59 '\u2139 test | | | | ',
60 '\u2139 fixtures | | | | ',
61 '\u2139 test-runner | | | | ',
62 '\u2139 coverage.js | 78.65 | 38.46 | 60.00 | 12-13 16-22 27 39 43-44 61-62 66-67 71-72',
63 '\u2139 invalid-tap.js | 100.00 | 100.00 | 100.00 | ',
64 '\u2139 v8-coverage | | | | ',
65 '\u2139 throw.js | 71.43 | 50.00 | 100.00 | 5-6',
66 '\u2139 --------------------------------------------------------------------------------------------',
67 '\u2139 all files | 78.35 | 43.75 | 60.00 | ',
68 '\u2139 --------------------------------------------------------------------------------------------',
69 '\u2139 end of coverage report',
70 ].join('\n');
71
72
73 if (common.isWindows) {
74 return report.replaceAll('/', '\\');
75 }
76
77 return report;
78}
79
80test('test coverage report', async (t) => {
81 await t.test('handles the inspector not being available', (t) => {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…