MCPcopy
hub / github.com/etcd-io/etcd / TestSample

Function TestSample

client/pkg/testutil/leak_test.go:36–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestSample(t *testing.T) {
37 SkipTestIfShortMode(t, "Counting leaked routines is disabled in --short tests")
38 defer afterTest(t)
39 ranSample = true
40 for range make([]struct{}, 100) {
41 go func() {
42 select {}
43 }()
44 }
45}

Callers

nothing calls this directly

Calls 2

SkipTestIfShortModeFunction · 0.85
afterTestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…