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.
26 lines
802 B
Text
26 lines
802 B
Text
Check [WILDCARD]/$deno$test.ts
|
|
running 1 tests
|
|
test returnsFooSuccess ... ok ([WILDCARD])
|
|
|
|
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
cover [WILDCARD]/tests/subdir/mod1.ts ... 35.714% (5/14)
|
|
3 | export function returnsHi(): string {
|
|
4 | return "Hi";
|
|
5 | }
|
|
-----|-----
|
|
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 ... 62.500% (5/8)
|
|
7 | export function printHello2(): void {
|
|
8 | printHello();
|
|
9 | }
|