@@ -4,8 +4,8 @@ exports[`c8 /* c8 ignore next */ does not incorrectly mark previous branch as un
44",--------------|---------|----------|---------|---------|-------------------
55File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
66--------------|---------|----------|---------|---------|-------------------
7- All files | 100 | 66.67 | 100 | 100 |
8- issue-254.js | 100 | 66.67 | 100 | 100 | 2
7+ All files | 100 | 100 | 100 | 100 |
8+ issue-254.js | 100 | 100 | 100 | 100 |
99--------------|---------|----------|---------|---------|-------------------
1010,"
1111` ;
@@ -48,9 +48,9 @@ negative
4848-----------------|---------|----------|---------|---------|-------------------
4949File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
5050-----------------|---------|----------|---------|---------|-------------------
51- All files | 64.29 | 66.67 | 50 | 64.29 |
52- ts-compiled | 78.26 | 75 | 100 | 78.26 |
53- loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4-5,16-18
51+ All files | 64.29 | 57.14 | 50 | 64.29 |
52+ ts-compiled | 78.26 | 66.67 | 100 | 78.26 |
53+ loaded.ts | 73.68 | 66.67 | 100 | 73.68 | 4-5,16-18
5454 main.ts | 100 | 100 | 100 | 100 |
5555 ts-compiled/dir | 0 | 0 | 0 | 0 |
5656 unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -65,9 +65,9 @@ negative
6565--------------|---------|----------|---------|---------|-------------------
6666File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
6767--------------|---------|----------|---------|---------|-------------------
68- All files | 64.29 | 66.67 | 50 | 64.29 |
69- ts-only | 78.26 | 75 | 100 | 78.26 |
70- loaded.ts | 73.68 | 71.43 | 100 | 73.68 | 4-5,16-18
68+ All files | 64.29 | 57.14 | 50 | 64.29 |
69+ ts-only | 78.26 | 66.67 | 100 | 78.26 |
70+ loaded.ts | 73.68 | 66.67 | 100 | 73.68 | 4-5,16-18
7171 main.ts | 100 | 100 | 100 | 100 |
7272 ts-only/dir | 0 | 0 | 0 | 0 |
7373 unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -215,6 +215,17 @@ exports[`c8 cobertura report escapes special characters 1`] = `
215215"
216216`;
217217
218+ exports[`c8 collects coverage for script with shebang 1`] = `
219+ " ,hello world
220+ ------------|---------|----------|---------|---------|-------------------
221+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
222+ ------------|---------|----------|---------|---------|-------------------
223+ All files | 75 | 50 | 100 | 75 |
224+ shebang.js | 75 | 50 | 100 | 75 | 7-8
225+ ------------|---------|----------|---------|---------|-------------------
226+ ,"
227+ `;
228+
218229exports[`c8 merges reports from subprocesses together 1`] = `
219230" ,first
220231
@@ -336,8 +347,8 @@ a = false
336347------------------------|---------|----------|---------|---------|-------------------
337348File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
338349------------------------|---------|----------|---------|---------|-------------------
339- All files | 84 | 57.14 | 100 | 84 |
340- branches.typescript.ts | 84 | 57.14 | 100 | 84 | 7,11-12,18
350+ All files | 84 | 50 | 100 | 84 |
351+ branches.typescript.ts | 84 | 50 | 100 | 84 | 7,11-12,18
341352------------------------|---------|----------|---------|---------|-------------------
342353,"
343354`;
@@ -351,8 +362,8 @@ covered
351362-----------------------|---------|----------|---------|---------|-------------------
352363File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
353364-----------------------|---------|----------|---------|---------|-------------------
354- All files | 81.82 | 87.5 | 60 | 81.82 |
355- classes.typescript.ts | 81.82 | 87.5 | 60 | 81.82 | 12-13,21-22,27-28
365+ All files | 81.82 | 85.71 | 60 | 81.82 |
366+ classes.typescript.ts | 81.82 | 85.71 | 60 | 81.82 | 12-13,21-22,27-28
356367-----------------------|---------|----------|---------|---------|-------------------
357368,"
358369`;
@@ -364,8 +375,8 @@ a = false
364375-------------|---------|----------|---------|---------|-------------------
365376File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
366377-------------|---------|----------|---------|---------|-------------------
367- All files | 80 | 50 | 100 | 80 |
368- branches.js | 80 | 50 | 100 | 80 | 2,5-6,13
378+ All files | 80 | 40 | 100 | 80 |
379+ branches.js | 80 | 40 | 100 | 80 | 2,5-6,13
369380-------------|---------|----------|---------|---------|-------------------
370381,"
371382`;
@@ -379,8 +390,8 @@ covered
379390------------|---------|----------|---------|---------|-------------------
380391File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
381392------------|---------|----------|---------|---------|-------------------
382- All files | 85.19 | 83.33 | 60 | 85.19 |
383- classes.js | 85.19 | 83.33 | 60 | 85.19 | 6-7,15,21
393+ All files | 85.19 | 80 | 60 | 85.19 |
394+ classes.js | 85.19 | 80 | 60 | 85.19 | 6-7,15,21
384395------------|---------|----------|---------|---------|-------------------
385396,"
386397`;
@@ -402,8 +413,8 @@ a = false
402413-------------|---------|----------|---------|---------|-------------------
403414File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
404415-------------|---------|----------|---------|---------|-------------------
405- All files | 80 | 55.56 | 100 | 80 |
406- branches.js | 80 | 55.56 | 100 | 80 | 2,6-7,13
416+ All files | 80 | 40 | 100 | 80 |
417+ branches.js | 80 | 40 | 100 | 80 | 2,6-7,13
407418-------------|---------|----------|---------|---------|-------------------
408419,"
409420`;
@@ -417,8 +428,8 @@ covered
417428------------|---------|----------|---------|---------|-------------------
418429File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
419430------------|---------|----------|---------|---------|-------------------
420- All files | 77.78 | 80 | 71.43 | 77.78 |
421- classes.js | 77.78 | 80 | 71.43 | 77.78 | 7-8,15-16,21-22
431+ All files | 77.78 | 83.33 | 60 | 77.78 |
432+ classes.js | 77.78 | 83.33 | 60 | 77.78 | 7-8,15-16,21-22
422433------------|---------|----------|---------|---------|-------------------
423434,"
424435`;
@@ -446,9 +457,9 @@ covered
446457------------|---------|----------|---------|---------|-------------------
447458File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
448459------------|---------|----------|---------|---------|-------------------
449- All files | 78.57 | 85.71 | 60 | 78.57 |
460+ All files | 78.57 | 83.33 | 60 | 78.57 |
450461 class-1.js | 100 | 100 | 100 | 100 |
451- class-2.js | 73.91 | 85.71 | 60 | 73.91 | 7-8,15-16,21-22
462+ class-2.js | 73.91 | 83.33 | 60 | 73.91 | 7-8,15-16,21-22
452463------------|---------|----------|---------|---------|-------------------
453464,"
454465`;
@@ -462,8 +473,8 @@ covered
462473------------------|---------|----------|---------|---------|-------------------
463474File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
464475------------------|---------|----------|---------|---------|-------------------
465- All files | 88.24 | 87.5 | 80 | 88.24 |
466- ts-node-basic.ts | 88.24 | 87.5 | 80 | 88.24 | 12-13,28-29
476+ All files | 88.24 | 85.71 | 80 | 88.24 |
477+ ts-node-basic.ts | 88.24 | 85.71 | 80 | 88.24 | 12-13,28-29
467478------------------|---------|----------|---------|---------|-------------------
468479,"
469480`;
0 commit comments