summaryrefslogtreecommitdiff
path: root/cli/tests/coverage/expected_complex.lcov
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-02-24 22:27:51 +0800
committerGitHub <noreply@github.com>2021-02-24 15:27:51 +0100
commitae8874b4b2015453e53965dae2a2dae9cacbce70 (patch)
treedc61e231685fc3bd0b32e90769ce0d3ad112e875 /cli/tests/coverage/expected_complex.lcov
parentf6a80f34d9f750e6c9c6c40f57211fc95befdf7a (diff)
feat: add "deno coverage" subcommand (#8664)
This commit adds a new subcommand called "coverage" which can generate code coverage reports to stdout in multiple formats from code coverage profiles collected to disk. Currently this supports outputting a pretty printed diff and the lcov format for interoperability with third-party services and tools. Code coverage is still collected via other subcommands that run and collect code coverage such as "deno test --coverage=<directory>" but that command no longer prints a pretty printed report at the end of a test run with coverage collection enabled. The restrictions on which files that can be reported on has also been relaxed and are fully controllable with the include and exclude regular expression flags on the coverage subcommand. Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'cli/tests/coverage/expected_complex.lcov')
-rw-r--r--cli/tests/coverage/expected_complex.lcov52
1 files changed, 52 insertions, 0 deletions
diff --git a/cli/tests/coverage/expected_complex.lcov b/cli/tests/coverage/expected_complex.lcov
new file mode 100644
index 000000000..0182b3de7
--- /dev/null
+++ b/cli/tests/coverage/expected_complex.lcov
@@ -0,0 +1,52 @@
+SF:[WILDCARD]complex.ts
+FN:22,dependency
+FN:37,complex
+FN:51,unused
+FN:65,ƒ
+FNDA:1,dependency
+FNDA:1,complex
+FNDA:0,unused
+FNDA:0,ƒ
+FNF:4
+FNH:2
+BRF:0
+BRH:0
+DA:17,2
+DA:18,2
+DA:19,2
+DA:20,2
+DA:22,2
+DA:23,2
+DA:24,2
+DA:25,2
+DA:26,2
+DA:27,1
+DA:32,1
+DA:33,1
+DA:34,1
+DA:35,1
+DA:37,2
+DA:38,2
+DA:39,2
+DA:40,2
+DA:41,2
+DA:42,1
+DA:46,0
+DA:47,0
+DA:48,0
+DA:49,0
+DA:51,0
+DA:52,0
+DA:53,0
+DA:54,0
+DA:55,0
+DA:56,0
+DA:60,1
+DA:64,0
+DA:65,0
+DA:66,0
+DA:67,0
+DA:68,1
+LH:22
+LF:36
+end_of_record