Documentation
¶
Overview ¶
Package testutil provides test utilities for CBT, including:
- ClickHouse container helpers for integration tests (clickhouse.go)
- Redis container helpers for integration tests (redis.go)
- Miniredis helpers for unit tests (miniredis.go)
Integration test utilities require Docker and are gated behind the "integration" build tag. To run integration tests:
go test -tags=integration ./...
Unit test helpers (miniredis) do not require Docker and work with regular tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiniredis ¶
NewMiniredis creates an in-memory Redis for unit tests (no Docker needed). The server is automatically closed when the test completes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.