4c0d92154b
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>
16 lines
399 B
Go
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)
|
|
}
|