- Go
testingpackage stretchr/testifyfor assertionstestcontainers-gofor integration tests (Postgres)
# All tests
make test
# Standard Go test
go test ./...
# With coverage report
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
# Race detector
go test -race ./...- Postgres integration tests live under
internal/storage/postgres/. - These tests require Docker and will spin up containers via
testcontainers-go.
- Test files use the
*_test.gosuffix. - Prefer table-driven tests for parsing/validation logic.