Skip to content

test: add integration tests for real-world patterns and edge cases#19

Merged
mattisonchao merged 2 commits intomainfrom
pr/11-more-integration-tests
Mar 21, 2026
Merged

test: add integration tests for real-world patterns and edge cases#19
mattisonchao merged 2 commits intomainfrom
pr/11-more-integration-tests

Conversation

@mattisonchao
Copy link
Copy Markdown
Member

Summary

  • Add 4 integration tests for real-world patterns (range scan with values, notifications, concurrent read/write, ephemeral keys)
  • Add tests for binary data, size overwrite, and CAS conflict scenarios
  • Total of ~7 new integration tests

Test plan

  • CI passes (fmt, clippy, build, tests)

- test_list_partial_range: verify partial range queries return correct subset
- test_read_your_writes: 50 sequential put+get pairs verify consistency
- test_multiple_clients: two independent clients reading each other's writes
- test_cas_loop: CAS (compare-and-swap) counter pattern with version checks
- Total: 42 integration tests + 12 unit tests + 1 doctest = 55 tests

Signed-off-by: mattisonchao <mattisonchao@gmail.com>
- test_binary_values: verify non-UTF8 binary data round-trip
- test_overwrite_different_sizes: small->large->small value overwrites
- test_concurrent_cas_conflict: two concurrent CAS updates to same key,
  verify exactly one succeeds and one gets UnexpectedVersionId
- Total: 45 integration tests + 12 unit tests + 1 doctest = 58 tests

Signed-off-by: mattisonchao <mattisonchao@gmail.com>
@mattisonchao mattisonchao force-pushed the pr/11-more-integration-tests branch from beff828 to f35a637 Compare March 21, 2026 04:35
@mattisonchao mattisonchao merged commit f9e236b into main Mar 21, 2026
2 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