mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
13751d9de6
Covered ranges were not merged and thus it appeared that some lines might be uncovered. To fix this I used "v8-coverage" that takes care of merging the ranges properly. With this change, coverage collected from a file by multiple entrypoints is now correctly calculated. I ended up forking https://github.com/demurgos/v8-coverage and adding "cli/tools/coverage/merge.rs" and "cli/tools/coverage/range_tree.rs".
6 lines
69 B
JavaScript
6 lines
69 B
JavaScript
export function test(a) {
|
|
if (a) {
|
|
return 0;
|
|
}
|
|
return 1;
|
|
}
|