Skip to content

Commit 61efa85

Browse files
committed
fix: 🐛 fix the code to be deterministic what the hell claude
1 parent fc192d7 commit 61efa85

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test-src/lowCoverage.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// 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");
2+
export function poorlyTestedFunction(forceBranch) {
3+
// This branch is never tested unless forced
4+
if (forceBranch === "unreachable") {
65
return "unreachable";
76
}
87

0 commit comments

Comments
 (0)