github.com/stretchr/testify/assert.Contains
third-partyThe 1212th most-called third-party function by production calls. Called 23,105 times across 322 modules; 523 of those run outside tests and generated code.
All of github.com/stretchr/testify/assert → Docs on pkg.go.dev ↗
- prod calls
- 523
- non-test, non-generated
- all calls
- 23,105
- total callsites
- modules
- 322
- distinct callers
- in loop
- 10%
- of prod calls
- in tests
- 98%
- 22,579 calls
- resolved
- 100%
- 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 →
- Package function95%A direct call to an exported package function, resolved by type.
- Package function (by syntax)5%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into Contains from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 167 32%
- Gitea 6 1%
- Cilium 2 <1%
- containerd 2 <1%
- Grafana 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 23,105, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
gitea.dev @v1.27.1
modules/indexer/issues/internal/tests/tests.go:288
in loop -
NoFxAiOS/nofx @v0.0.0-20260730005637-d3de5e82aa02
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
ory/x @v0.0.729
in loop - in loop
- in loop
-
k8s.io/ingress-nginx @v0.0.0-20260319212031-dbb11b92ddb7
test/e2e/annotations/customhttperrors.go:64
in loop
top callers
The modules that reach for it
The modules that call Contains most in this snapshot.
- github.com/gruntwork-io/terragrunt1,1945%
- github.com/weaviate/weaviate1,1045%
- github.com/aliyun/alibabacloud-oss-go-sdk-v29124%
- github.com/github/github-mcp-server8804%
- github.com/ory/kratos6383%
siblings
More from github.com/stretchr/testify/assert
The other most-called functions in this package. See all →