MCPcopy
hub / github.com/gofiber/fiber / BenchmarkState_MustGetService

Function BenchmarkState_MustGetService

state_test.go:1270–1280  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1268}
1269
1270func BenchmarkState_MustGetService(b *testing.B) {
1271 b.ReportAllocs()
1272
1273 st := newState()
1274 srv := &mockService{name: "benchService"}
1275 st.setService(srv)
1276
1277 for b.Loop() {
1278 _ = MustGetService[*mockService](st, srv.String())
1279 }
1280}

Callers

nothing calls this directly

Calls 3

StringMethod · 0.95
newStateFunction · 0.85
setServiceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…