From 9965fc8cc35afc0ff4b338b0d893742b84fe102d Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sat, 30 Jan 2021 03:45:22 +0800 Subject: fix(cli/coverage): display mapped instrumentation line counts (#9310) --- cli/tests/subdir/complex.ts | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cli/tests/subdir/complex.ts (limited to 'cli/tests/subdir/complex.ts') diff --git a/cli/tests/subdir/complex.ts b/cli/tests/subdir/complex.ts new file mode 100644 index 000000000..588e6ce59 --- /dev/null +++ b/cli/tests/subdir/complex.ts @@ -0,0 +1,35 @@ +// This entire interface should be completely ignored by the coverage tool. +export interface Complex { + // These are comments. + foo: string; + + // But this is a stub, so this isn't really documentation. + bar: string; + + // Really all these are doing is padding the line count. + baz: string; +} + +export function complex( + foo: string, + bar: string, + baz: string, +): Complex { + return { + foo, + bar, + baz, + }; +} + +export function unused( + foo: string, + bar: string, + baz: string, +): Complex { + return complex( + foo, + bar, + baz, + ); +} -- cgit v1.2.3