Hugo Nijhuis 3cd4d75e50
All checks were successful
CI / build (pull_request) Successful in 17s
CI / build (push) Successful in 14s
Add comprehensive unit tests for ConsistentHashRing
Test all public methods with 100% coverage:
- AddNode: updates ring, is idempotent, handles multiple nodes
- RemoveNode: updates ring, handles non-existent nodes
- GetNode: returns consistent results, handles empty ring and single node
- GetNodes and IsEmpty helper methods

Distribution tests verify:
- Balanced key distribution across nodes (< 25% deviation)
- Minimal key movement when adding nodes (< 35% moved)
- Virtual nodes improve distribution (CV < 15%)
- Ring behavior with 100+ nodes

Includes benchmarks for GetNode, AddNode, and distribution operations.

Closes #2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 16:52:34 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:39:16 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:39:16 +01:00
Description
Distributed actor system with event sourcing for Go
800 KiB
Languages
Go 100%