github.com/stretchr/testify/assert.Contains
third-partyThe 1094th most-called third-party function by production calls. Called 29,699 times across 336 modules; 641 of those run outside tests and generated code.
1% in production calls vs 2026-W48 (646 → 641)
All of github.com/stretchr/testify/assert → Docs on pkg.go.dev ↗
- prod calls
- 641
- non-test, non-generated
- all calls
- 29,699
- total callsites
- modules
- 336
- distinct callers
- in loop
- 11%
- of prod calls
- in tests
- 98%
- 29,055 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 function96%A direct call to an exported package function, resolved by type.
- Package function (by syntax)4%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 166 26%
- Gitea 6 <1%
- Cilium 2 <1%
- containerd 2 <1%
- Grafana 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 29,699, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
gitea.dev @v1.27.3
modules/indexer/issues/internal/tests/tests.go:288
in loop -
NoFxAiOS/nofx @v0.0.0-20261104124651-65e9037b4527
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
ory/x @v0.0.729
in loop - in loop
- in loop
-
kubernetes/ingress-nginx @v0.0.0-20260319212031-dbb11b92ddb7
in loop
top callers
The modules that reach for it
The modules that call Contains most in this snapshot.
- github.com/photoprism/photoprism2,0177%
- github.com/weaviate/weaviate1,4345%
- github.com/gruntwork-io/terragrunt1,2584%
- github.com/github/github-mcp-server1,0804%
- github.com/aliyun/alibabacloud-oss-go-sdk-v29783%
siblings
More from github.com/stretchr/testify/assert
The other most-called functions in this package. See all →