summaryrefslogtreecommitdiff
path: root/tests/testdata/coverage/multisource/foo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/coverage/multisource/foo.ts')
-rw-r--r--tests/testdata/coverage/multisource/foo.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testdata/coverage/multisource/foo.ts b/tests/testdata/coverage/multisource/foo.ts
new file mode 100644
index 000000000..0559cadd8
--- /dev/null
+++ b/tests/testdata/coverage/multisource/foo.ts
@@ -0,0 +1,14 @@
+export function foo(cond: boolean) {
+ let a = 0;
+ if (cond) {
+ a = 1;
+ } else {
+ a = 2;
+ }
+
+ if (a == 4) {
+ return 1;
+ } else {
+ return 2;
+ }
+}