Golang Testing Strategy
Test Layers
- Unit tests for logic and edge cases.
- Integration tests for DB/Redis and service collaboration.
- Benchmarks for hot paths.
AAA Template
- Arrange: setup inputs and dependencies.
- Act: execute the target.
- Assert: verify outputs and side effects.

