()
| 50 | } |
| 51 | |
| 52 | function 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 | |
| 80 | test('test coverage report', async (t) => { |
| 81 | await t.test('handles the inspector not being available', (t) => { |
no test coverage detected
searching dependent graphs…