summaryrefslogtreecommitdiff
path: root/cli/tests/test_run_combined_coverage.out
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-01-28 22:11:38 +0800
committerGitHub <noreply@github.com>2021-01-28 15:11:38 +0100
commit5cf194380bcad0fd763fb0893ec49bfc91fda15d (patch)
tree95a35e7b6485c5f0893b99ca1b9e1484e220c9d0 /cli/tests/test_run_combined_coverage.out
parent591ed6b3ad786b756e66c2f64f365c76b4ccd617 (diff)
fix(coverage): use source maps when printing pretty reports (#9278)
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.
Diffstat (limited to 'cli/tests/test_run_combined_coverage.out')
-rw-r--r--cli/tests/test_run_combined_coverage.out21
1 files changed, 11 insertions, 10 deletions
diff --git a/cli/tests/test_run_combined_coverage.out b/cli/tests/test_run_combined_coverage.out
index 476e9adcc..24ceb9955 100644
--- a/cli/tests/test_run_combined_coverage.out
+++ b/cli/tests/test_run_combined_coverage.out
@@ -14,18 +14,19 @@ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WIL
cover [WILDCARD]/tests/run_coverage.ts ... 100.000% (3/3)
cover [WILDCARD]/tests/subdir/mod1.ts ... 57.143% (8/14)
- 8 | export function printHello3() {
- 9 | printHello2();
- 10 | }
- 11 | export function throwsError() {
- 12 | throw Error("exception from mod1");
+ 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() {
- 2 | console.log("Hello");
+ 1 | export function printHello(): void {
+ 2 | console.log("Hello");
3 | }
cover [WILDCARD]/tests/subdir/subdir2/mod2.ts ... 62.500% (5/8)
- 5 | export function printHello2() {
- 6 | printHello();
- 7 | }
+ 7 | export function printHello2(): void {
+ 8 | printHello();
+ 9 | }
cover [WILDCARD]/tests/test_coverage.ts ... 100.000% (5/5)