testing.TB.Cleanup
standard libraryThe 1976th most-called standard-library method by production calls. Called 820 times across 157 modules; 334 of those run outside tests and generated code.
3% in production calls vs 2026-W48 (323 → 334)
- prod calls
- 334
- non-test, non-generated
- all calls
- 820
- total callsites
- modules
- 157
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 59%
- 485 calls
- resolved
- 0%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Embedded method<1%Reached through an embedded type.
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into TB.Cleanup from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 32 10%
- HashiCorp 23 7%
- Kubernetes 19 6%
- Grafana 17 5%
- Cilium 13 4%
where it's called
Callsites in the wild
12 representative callsites of 820, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
tailscale.com @v1.106.1
tstest/natlab/vmtest/qemu.go:310
in loop - in loop test
- in loop test
- in loop test
- in loop test
- in loop test
-
golang.zx2c4.com/wireguard @v0.0.0-20261024220952-b3bc704ef0ee
device/device_test.go:190
in loop test - in loop test
- in loop test
-
cdr.dev/slog @v1.6.1
sloggers/slogtest/t.go:51
top callers
The modules that reach for it
The modules that call TB.Cleanup most in this snapshot.
- github.com/tailscale/tailscale698%
- tailscale.com698%
- github.com/cilium/cilium638%
- github.com/hashicorp/boundary324%
- github.com/cilium/ebpf202%
siblings
More from testing
The other most-called members in this package. See all →