Files
kandev/apps/backend/internal/task/usage/goleak_test.go
T
Henry 4c0d92154b feat(backend): add per-run cost/token ledger for task usage (#2960)
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
2026-08-23 22:15:19 +00:00

16 lines
399 B
Go

package usage
import (
"testing"
"go.uber.org/goleak"
)
// TestMain asserts that no goroutines from this package outlive the test
// process. Writer owns a single worker goroutine guarded by Start/Stop;
// goleak catches regressions where Start forgets to register on the
// WaitGroup, or Stop returns before the worker actually exits.
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}