Skip to content

Conversation

@deviantintegral
Copy link
Owner

Remove testGetSetId method which is redundant with testSerialize. The serialization test already exercises getId() and setId() through the full serialization/deserialization cycle, and mutation testing confirms 100% MSI is maintained without this dedicated test.


deviantintegral and others added 4 commits December 17, 2025 19:09
Remove testGetSetId method which is redundant with testSerialize. The
serialization test already exercises getId() and setId() through the
full serialization/deserialization cycle, and mutation testing confirms
100% MSI is maintained without this dedicated test.

---------

Co-authored-by: Claude <[email protected]>
Remove the serialization array comparison assertion as it is redundant
with the round-trip deserialization test. Mutation testing confirms 100%
coverage and MSI are maintained.

---------

Co-authored-by: Claude <[email protected]>
Remove assertIsArray assertion that was redundant because the subsequent
assertEquals on the type key implicitly verifies the array exists.

---------

Co-authored-by: Claude <[email protected]>
The deserialization round-trip assertion is redundant because:
- The serialization assertion already validates getters work correctly
- 100% code coverage is maintained without this assertion
- 100% mutation score is maintained without this assertion

Co-authored-by: Claude <[email protected]>
@deviantintegral deviantintegral changed the title test: remove redundant test/assertion in PageTest (#183) test: remove redundant test/assertion Dec 18, 2025
The QueryStringTest file was redundant because:
- QueryString class only uses traits (CommentTrait, NameValueTrait)
- These traits are already tested by HeaderTest and ParamsTest
- Other tests use QueryString objects indirectly

Verified: tests pass, coverage maintained at 97.73%, infection passes
with 100% MSI.

Co-authored-by: Claude <[email protected]>
@deviantintegral deviantintegral changed the title test: remove redundant test/assertion test: remove redundant tests and assertions Dec 18, 2025
deviantintegral and others added 8 commits December 17, 2025 19:28
Remove 4 redundant assertions that were duplicating coverage:
- assertFalse(hasUrl()) - redundant with assertTrue(hasUrl()) in other
test
- assertFalse(hasLineNumber()) - redundant with
assertTrue(hasLineNumber()) in other test
- assertIsNumeric(getLineNumber()) - redundant, value already verified
via assertDeserialize
- assertNotNull(getUrl()) - redundant, value already verified via
assertDeserialize

All tests pass, coverage is maintained at 87.50%/90.91%, and mutation
testing (infection) still achieves 100% Covered Code MSI.

Co-authored-by: Claude <[email protected]>
Remove testMissingLogKeyThrowsException and testEmptyJsonThrowsException
as they test the same code path as testNonObjectJsonThrowsException.
Coverage and mutation testing (infection) both pass with only one test.

Co-authored-by: Claude <[email protected]>
)

Remove duplicate assertNull check for getAttribute with non-existent
key. The test already verifies the same behavior with another
non-existent key.

Co-authored-by: Claude <[email protected]>
@deviantintegral deviantintegral merged commit 3a559b3 into main Dec 18, 2025
9 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