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,012
non-test, non-generated
all calls
1,674,949
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,113
common.Errorf 6,546
common.Helper 6,094
T.Run 4,579
common.Fatal 2,511
common.Logf 2,287
TB.Helper 1,629
TB.Fatalf 1,055
common.Cleanup 782
TB.Fatal 771
common.Error 730
common.Log 498
common.Skip 496
common.Context 493
TB.Logf 492
TB.Errorf 451
T.Parallel 349
common.Name 336
common.TempDir 321
TB.Cleanup 311
common.Skipf 204
TB.Skipf 137
common.Failed 112
TB.Name 107
Short 95
TB.Log 95
common.FailNow 93
TB.Skip 92
B.Run 88
B.ResetTimer 73
TB.TempDir 72