diff options
Diffstat (limited to 'cli/tests/testdata/coverage/multisource')
-rw-r--r-- | cli/tests/testdata/coverage/multisource/baz/quux.ts | 9 | ||||
-rw-r--r-- | cli/tests/testdata/coverage/multisource/foo.ts | 7 | ||||
-rw-r--r-- | cli/tests/testdata/coverage/multisource/test.ts | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/cli/tests/testdata/coverage/multisource/baz/quux.ts b/cli/tests/testdata/coverage/multisource/baz/quux.ts index ab8c62db6..6032f6f3c 100644 --- a/cli/tests/testdata/coverage/multisource/baz/quux.ts +++ b/cli/tests/testdata/coverage/multisource/baz/quux.ts @@ -1,6 +1,13 @@ export function quux(cond: boolean) { if (cond) { - return 1; + const a = 1; + const b = a; + const c = b; + const d = c; + const e = d; + const f = e; + const g = f; + return g; } else { return 2; } diff --git a/cli/tests/testdata/coverage/multisource/foo.ts b/cli/tests/testdata/coverage/multisource/foo.ts index 023f82556..0559cadd8 100644 --- a/cli/tests/testdata/coverage/multisource/foo.ts +++ b/cli/tests/testdata/coverage/multisource/foo.ts @@ -1,5 +1,12 @@ export function foo(cond: boolean) { + let a = 0; if (cond) { + a = 1; + } else { + a = 2; + } + + if (a == 4) { return 1; } else { return 2; diff --git a/cli/tests/testdata/coverage/multisource/test.ts b/cli/tests/testdata/coverage/multisource/test.ts index 6adf6f52c..350421177 100644 --- a/cli/tests/testdata/coverage/multisource/test.ts +++ b/cli/tests/testdata/coverage/multisource/test.ts @@ -5,6 +5,7 @@ import { quux } from "./baz/quux.ts"; Deno.test("foo", () => { foo(true); + foo(false); }); Deno.test("bar", () => { @@ -13,6 +14,7 @@ Deno.test("bar", () => { Deno.test("qux", () => { qux(true); + qux(false); }); Deno.test("quux", () => { |