@@ -4,8 +4,8 @@ exports[`c8 /* c8 ignore next */ does not incorrectly mark previous branch as un
4
4
",--------------|---------|----------|---------|---------|-------------------
5
5
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
6
6
--------------|---------|----------|---------|---------|-------------------
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 |
9
9
--------------|---------|----------|---------|---------|-------------------
10
10
,"
11
11
` ;
@@ -48,9 +48,9 @@ negative
48
48
-----------------|---------|----------|---------|---------|-------------------
49
49
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
50
50
-----------------|---------|----------|---------|---------|-------------------
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
54
54
main.ts | 100 | 100 | 100 | 100 |
55
55
ts-compiled/dir | 0 | 0 | 0 | 0 |
56
56
unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -65,9 +65,9 @@ negative
65
65
--------------|---------|----------|---------|---------|-------------------
66
66
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
67
67
--------------|---------|----------|---------|---------|-------------------
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
71
71
main.ts | 100 | 100 | 100 | 100 |
72
72
ts-only/dir | 0 | 0 | 0 | 0 |
73
73
unloaded.ts | 0 | 0 | 0 | 0 | 1-5
@@ -215,6 +215,17 @@ exports[`c8 cobertura report escapes special characters 1`] = `
215
215
"
216
216
`;
217
217
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
+
218
229
exports[`c8 merges reports from subprocesses together 1`] = `
219
230
" ,first
220
231
@@ -336,8 +347,8 @@ a = false
336
347
------------------------|---------|----------|---------|---------|-------------------
337
348
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
338
349
------------------------|---------|----------|---------|---------|-------------------
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
341
352
------------------------|---------|----------|---------|---------|-------------------
342
353
,"
343
354
`;
@@ -351,8 +362,8 @@ covered
351
362
-----------------------|---------|----------|---------|---------|-------------------
352
363
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
353
364
-----------------------|---------|----------|---------|---------|-------------------
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
356
367
-----------------------|---------|----------|---------|---------|-------------------
357
368
,"
358
369
`;
@@ -364,8 +375,8 @@ a = false
364
375
-------------|---------|----------|---------|---------|-------------------
365
376
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
366
377
-------------|---------|----------|---------|---------|-------------------
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
369
380
-------------|---------|----------|---------|---------|-------------------
370
381
,"
371
382
`;
@@ -379,8 +390,8 @@ covered
379
390
------------|---------|----------|---------|---------|-------------------
380
391
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
381
392
------------|---------|----------|---------|---------|-------------------
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
384
395
------------|---------|----------|---------|---------|-------------------
385
396
,"
386
397
`;
@@ -402,8 +413,8 @@ a = false
402
413
-------------|---------|----------|---------|---------|-------------------
403
414
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
404
415
-------------|---------|----------|---------|---------|-------------------
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
407
418
-------------|---------|----------|---------|---------|-------------------
408
419
,"
409
420
`;
@@ -417,8 +428,8 @@ covered
417
428
------------|---------|----------|---------|---------|-------------------
418
429
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
419
430
------------|---------|----------|---------|---------|-------------------
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
422
433
------------|---------|----------|---------|---------|-------------------
423
434
,"
424
435
`;
@@ -446,9 +457,9 @@ covered
446
457
------------|---------|----------|---------|---------|-------------------
447
458
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
448
459
------------|---------|----------|---------|---------|-------------------
449
- All files | 78.57 | 85.71 | 60 | 78.57 |
460
+ All files | 78.57 | 83.33 | 60 | 78.57 |
450
461
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
452
463
------------|---------|----------|---------|---------|-------------------
453
464
,"
454
465
`;
@@ -462,8 +473,8 @@ covered
462
473
------------------|---------|----------|---------|---------|-------------------
463
474
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
464
475
------------------|---------|----------|---------|---------|-------------------
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
467
478
------------------|---------|----------|---------|---------|-------------------
468
479
,"
469
480
`;
0 commit comments