Skip to content
callcount

package

testing

standard library

31 standard-library functions from testing, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
40,088
non-test, non-generated
all calls
1,689,157
total callsites
functions
31
ranked in this snapshot
origin
std
standard-library

members

Functions in testing

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
common.Fatalf 8,132
common.Errorf 6,546
common.Helper 6,113
T.Run 4,596
common.Fatal 2,533
common.Logf 2,285
TB.Helper 1,629
TB.Fatalf 1,055
common.Cleanup 782
TB.Fatal 771
common.Error 730
common.Skip 502
common.Log 497
TB.Logf 492
common.Context 486
TB.Errorf 451
T.Parallel 349
common.Name 334
common.TempDir 322
TB.Cleanup 311
common.Skipf 207
TB.Skipf 137
common.Failed 113
TB.Name 106
Short 95
TB.Log 95
common.FailNow 94
TB.Skip 92
B.Run 88
B.ResetTimer 73
TB.TempDir 72