summaryrefslogtreecommitdiff
path: root/tests/testdata/coverage/branch.ts
blob: 35216710921e05fb23a856ce75002224db75eea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export function branch(condition: boolean): boolean {
  if (condition) {
    return true;
  } else {
    return false;
  }
}

export function unused(condition: boolean): boolean {
  if (condition) {
    return false;
  } else {
    return true;
  }
}