Skip to content

test: add tests for IncrementInteger and DecrementInteger mutations#159

Merged
deviantintegral merged 1 commit intomainfrom
claude/add-increment-decrement-tests-OrmAs
Dec 16, 2025
Merged

test: add tests for IncrementInteger and DecrementInteger mutations#159
deviantintegral merged 1 commit intomainfrom
claude/add-increment-decrement-tests-OrmAs

Conversation

@deviantintegral
Copy link
Owner

Add comprehensive tests covering all IncrementInteger and DecrementInteger mutations identified in the mutation testing report:

PostData.php mutations #45, #46:

  • Test getBodySize() returns exactly 0 when no data is present
  • Test getBodySize() with text content
  • Test getBodySize() with params

HeadersTrait.php mutations #57, #59, #60, #65, #66, #68, #70:

  • Test setHeaders() calculates correct header size
  • Test with single header
  • Test with multiple headers
  • Test with empty array
  • Test with minimal single-character values

These tests ensure the exact integer values are verified, preventing mutations that increment or decrement critical numeric constants.

Add comprehensive tests covering all IncrementInteger and DecrementInteger
mutations identified in the mutation testing report:

PostData.php mutations #45, #46:
- Test getBodySize() returns exactly 0 when no data is present
- Test getBodySize() with text content
- Test getBodySize() with params

HeadersTrait.php mutations #57, #59, #60, #65, #66, #68, #70:
- Test setHeaders() calculates correct header size
- Test with single header
- Test with multiple headers
- Test with empty array
- Test with minimal single-character values

These tests ensure the exact integer values are verified, preventing
mutations that increment or decrement critical numeric constants.
@deviantintegral deviantintegral force-pushed the claude/add-increment-decrement-tests-OrmAs branch from 85e4c3b to ed639c8 Compare December 16, 2025 22:35
@deviantintegral deviantintegral marked this pull request as ready for review December 16, 2025 22:36
@deviantintegral deviantintegral merged commit f075ab5 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