mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(coverage): exclude comment lines from coverage reports (#25939)
This commit is contained in:
parent
56f25af2c7
commit
50ea707b58
4 changed files with 80 additions and 65 deletions
31
tests/testdata/coverage/complex_expected.out
vendored
31
tests/testdata/coverage/complex_expected.out
vendored
|
@ -1,20 +1,21 @@
|
|||
cover [WILDCARD]/coverage/complex.ts ... 72.549% (37/51)
|
||||
46 | export function unused(
|
||||
47 | foo: string,
|
||||
48 | bar: string,
|
||||
49 | baz: string,
|
||||
cover [WILDCARD]/coverage/complex.ts ... 60.000% (21/35)
|
||||
55 | export function unused(
|
||||
56 | foo: string,
|
||||
57 | bar: string,
|
||||
58 | baz: string,
|
||||
-----|-----
|
||||
51 | return complex(
|
||||
52 | foo,
|
||||
53 | bar,
|
||||
54 | baz,
|
||||
61 | return complex(
|
||||
62 | foo,
|
||||
63 | bar,
|
||||
64 | baz,
|
||||
-----|-----
|
||||
56 | }
|
||||
66 | }
|
||||
-----|-----
|
||||
64 | export function ƒ(): number {
|
||||
65 | return (
|
||||
66 | 0
|
||||
74 | export function ƒ(): number {
|
||||
-----|-----
|
||||
68 | }
|
||||
78 | return (
|
||||
79 | 0
|
||||
-----|-----
|
||||
71 | console.log("%s", () => 1);
|
||||
81 | }
|
||||
-----|-----
|
||||
84 | console.log("%s", () => 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue