Skip to content

Conversation

@deviantintegral
Copy link
Owner

Remove 7 redundant assertions that are logically implied by other tests:

  • testHasHeaderCaseInsensitive: Remove hasHeader('Accept') check (already tested in testHasHeader)
  • testWithUriPreservesHostWhenRequested: Remove assertNotEquals check (implied by assertEquals with original host)
  • testWithoutHeaderCaseInsensitive: Remove 3 variant case checks (hasHeader case-insensitivity tested elsewhere)
  • testWithHeaderDoesNotModifyOriginal: Remove hasHeader('X-Test') check (implied by assertEquals with originalHeaders)
  • testGetBody: Remove assertInstanceOf check (implied by successful string cast of stream)

All removals verified with:

  • Tests still pass
  • Coverage unchanged (97.73%)
  • Infection MSI maintained at 100%

@deviantintegral deviantintegral force-pushed the claude/remove-duplicate-tests-7kyGR branch from 93e36df to e831d5f Compare December 18, 2025 01:33
Remove 7 redundant assertions that are logically implied by other tests:

- testHasHeaderCaseInsensitive: Remove hasHeader('Accept') check
  (already tested in testHasHeader)
- testWithUriPreservesHostWhenRequested: Remove assertNotEquals check
  (implied by assertEquals with original host)
- testWithoutHeaderCaseInsensitive: Remove 3 variant case checks
  (hasHeader case-insensitivity tested elsewhere)
- testWithHeaderDoesNotModifyOriginal: Remove hasHeader('X-Test') check
  (implied by assertEquals with originalHeaders)
- testGetBody: Remove assertInstanceOf check
  (implied by successful string cast of stream)

All removals verified with:
- Tests still pass
- Coverage unchanged (97.73%)
- Infection MSI maintained at 100%
@deviantintegral deviantintegral force-pushed the claude/remove-duplicate-tests-7kyGR branch from e831d5f to 5ca3816 Compare December 18, 2025 01:36
@deviantintegral deviantintegral marked this pull request as ready for review December 18, 2025 01:36
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.

3 participants