Skip to content

test: add edge case tests for LessThan mutations#158

Merged
deviantintegral merged 1 commit intomainfrom
claude/add-lessthan-tests-tPfmX
Dec 16, 2025
Merged

test: add edge case tests for LessThan mutations#158
deviantintegral merged 1 commit intomainfrom
claude/add-lessthan-tests-tPfmX

Conversation

@deviantintegral
Copy link
Owner

Add comprehensive tests for boundary conditions identified in mutation testing:

  1. HarFileRepository:

    • Test filtering of files with exactly 4 characters
    • Verify files < 4 chars are filtered out
    • Verify .har files >= 4 chars are included
  2. Timings:

    • Test setConnect allows connect equal to SSL time
    • Test setConnect throws exception when connect < SSL
    • Test setSend/setWait/setReceive allow zero values
    • Test setSend/setWait/setReceive reject negative values

These tests kill the LessThan mutations identified in the report by:

  • Testing the boundary value where < becomes <=
  • Ensuring edge cases are properly handled

Add comprehensive tests for boundary conditions identified in mutation testing:

1. HarFileRepository:
   - Test filtering of files with exactly 4 characters
   - Verify files < 4 chars are filtered out
   - Verify .har files >= 4 chars are included

2. Timings:
   - Test setConnect allows connect equal to SSL time
   - Test setConnect throws exception when connect < SSL
   - Test setSend/setWait/setReceive allow zero values
   - Test setSend/setWait/setReceive reject negative values

These tests kill the LessThan mutations identified in the report by:
- Testing the boundary value where < becomes <=
- Ensuring edge cases are properly handled
@deviantintegral deviantintegral marked this pull request as ready for review December 16, 2025 22:33
@deviantintegral deviantintegral merged commit a7cc6dc into main Dec 16, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants