Files
aether/store/memory.go
Hugo Nijhuis 032fda41ce
All checks were successful
CI / build (pull_request) Successful in 15s
CI / build (push) Successful in 15s
Add comprehensive unit tests for InMemoryEventStore
- Test SaveEvent persists events correctly (single, multiple, multi-actor)
- Test GetEvents retrieves events in insertion order
- Test GetEvents with fromVersion filtering
- Test GetLatestVersion returns correct version
- Test behavior with non-existent actor IDs (returns empty/zero)
- Test concurrent access safety with race detector
- Add mutex protection to InMemoryEventStore for thread safety

Closes #3

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 17:14:18 +01:00

1.7 KiB