We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc192d7 commit 61efa85Copy full SHA for 61efa85
test-src/lowCoverage.js
@@ -1,8 +1,7 @@
1
// This file has intentionally low coverage for testing purposes
2
-export function poorlyTestedFunction() {
3
- // This branch is never tested
4
- if (Math.random() > 0.5) {
5
- console.log("This will never be executed in tests");
+export function poorlyTestedFunction(forceBranch) {
+ // This branch is never tested unless forced
+ if (forceBranch === "unreachable") {
6
return "unreachable";
7
}
8
0 commit comments