mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
5cf194380b
This commits makes use of source maps and the original source when printing lacking line coverage in the pretty printer. Only the executable lines are checked as before (as non-executable lines will always be ignored anyways). The lines then mapped to the appropriate source line when a source map is present.
32 lines
998 B
Text
32 lines
998 B
Text
Check [WILDCARD]/tests/$deno$test.ts
|
|
running 1 tests
|
|
test spawn test ... Check [WILDCARD]/tests/run_coverage.ts
|
|
ok ([WILDCARD])
|
|
|
|
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
cover [WILDCARD]/tests/run_coverage.ts ... 100.000% (3/3)
|
|
cover [WILDCARD]/tests/subdir/mod1.ts ... 35.714% (5/14)
|
|
7 | export function returnsFoo2(): string {
|
|
8 | return returnsFoo();
|
|
9 | }
|
|
-----|-----
|
|
11 | export function printHello3(): void {
|
|
12 | printHello2();
|
|
13 | }
|
|
-----|-----
|
|
15 | export function throwsError(): void {
|
|
16 | throw Error("exception from mod1");
|
|
17 | }
|
|
cover [WILDCARD]/tests/subdir/print_hello.ts ... 25.000% (1/4)
|
|
1 | export function printHello(): void {
|
|
2 | console.log("Hello");
|
|
3 | }
|
|
cover [WILDCARD]/tests/subdir/subdir2/mod2.ts ... 25.000% (2/8)
|
|
3 | export function returnsFoo(): string {
|
|
4 | return "Foo";
|
|
5 | }
|
|
-----|-----
|
|
7 | export function printHello2(): void {
|
|
8 | printHello();
|
|
9 | }
|