summaryrefslogtreecommitdiff
path: root/tests/testdata/coverage/multisource/test.ts
blob: 766798c64507475e15b0841908244eff1a20eaa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { foo } from "./foo.ts";
import { bar } from "./bar.ts";
import { qux } from "./baz/qux.ts";
import { quux } from "./baz/quux.ts";

Deno.test("foo", () => {
  foo(true);
  foo(false);
});

Deno.test("bar", () => {
  bar(false);
});

Deno.test("qux", () => {
  qux(true);
  qux(false);
});

Deno.test("quux", () => {
  quux(false);
});

// Function constructor or eval function generates a new script source internally.
// This call ensures that the coverage data for the eval script source is not generated.
eval("console.log(1)");