You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ Check it out here: [Roadmap](https://github.com/codeintegrity-ai/mutahunter/issu
19
19
20
20
We'd love to hear your feedback, suggestions, and any thoughts you have on mutation testing. Join the discussion and share your insights on the roadmap or any other ideas you have. 🙌
**Location:** Multiple functions including `subtractHandler`, `multiplyHandler`, `isPalindromeHandler`, `daysUntilNewYearHandler`, and `echoHandler`.
4
+
**Description:** The surviving mutants indicate that the code lacks robust error handling for parameter conversions and edge cases, such as empty inputs and boundary conditions. For instance, the `subtractHandler` does not handle conversion errors, and the `multiplyHandler` incorrectly returns 0 when either number is 0 without proper context.
5
+
6
+
### Test Case Gaps
7
+
**File:**`app_test.go` (assumed)
8
+
**Location:** Various test methods for arithmetic operations and string manipulations.
9
+
**Reason:** Existing test cases likely do not cover scenarios such as:
10
+
- Invalid or empty parameters (e.g., `subtractHandler` and `echoHandler`).
11
+
- Edge cases like multiplying by zero or checking for palindromes with empty strings.
12
+
- Leap year considerations in `daysUntilNewYearHandler`.
**Description:** The methods `deposit` and `withdraw` do not handle zero or negative amounts correctly. Specifically, the `withdraw` method ignores the overdraft limit if the withdrawal amount is less than the balance. Additionally, the `scheduleTransaction` method allows for scheduling transactions with zero days, which could lead to unintended immediate execution.
**Location:** Test methods `testDeposit`, `testWithdraw`, and `testScheduleTransaction`
9
+
**Reason:** Existing test cases do not account for edge cases such as zero or negative deposit/withdrawal amounts. The tests also fail to validate the behavior when overdraft limits are ignored or when scheduling transactions for zero days.
0 commit comments