diff options
| author | Casper Beyer <caspervonb@pm.me> | 2021-01-30 03:45:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-29 14:45:22 -0500 |
| commit | 9965fc8cc35afc0ff4b338b0d893742b84fe102d (patch) | |
| tree | dc845b973016e7e5b44e014c49eabe6ce6a2f44b /cli/tests/subdir | |
| parent | 013b8fe606ba146ad9f7d15a8a3a0e05defb0a12 (diff) | |
fix(cli/coverage): display mapped instrumentation line counts (#9310)
Diffstat (limited to 'cli/tests/subdir')
| -rw-r--r-- | cli/tests/subdir/complex.ts | 35 |
1 files changed, 35 insertions, 0 deletions
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, + ); +} |
