Skip to content

Organize queue tests and cover immovable elements - #69

Merged
rigtorp merged 1 commit into
masterfrom
v2/04c-test-cases
Nov 18, 2026
Merged

rigtorp merged 1 commit into
masterfrom
v2/04c-test-cases

Conversation

@rigtorp

@rigtorp rigtorp commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

MPMCQueueTest
  main()
    testElementLifetime / testFullAndEmpty
    testCopyOnlyElements / testMoveOnlyElements / testImmovableElements
    testMemberPointerConsumers / testMovedPointerIdentity
    testCapacityBounds / testCustomAllocator / testContention

Keep one CTest executable and one coverage profile. Add a capacity-one
regression for in-place construction, consumption by reference, destruction,
and slot reuse. A compile-time check confirms that try_pop is unavailable
for a type with deleted copy and move operations.

Evidence

  • Before One main contained all scenarios. Copy-only and move-only
    types were covered.
  • After GCC Debug, Clang Release, and pre-commit passed. GCC 14 reported
    28/28 MC/DC condition outcomes.

Merge Danger

Door Two-way. The change is isolated to the test source.

Blast radius Test coverage and organization.

@rigtorp
rigtorp merged commit 62f249d into master Nov 18, 2026
10 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.

1 participant