MCPcopy Create free account
hub / github.com/cloudflare/cfssl / BenchmarkVerify

Function BenchmarkVerify

auth/auth_test.go:146–159  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

144}
145
146func BenchmarkVerify(b *testing.B) {
147 token, _ := testProvider.Token(bmRequest)
148 req := &AuthenticatedRequest{
149 Token: token,
150 Request: bmRequest,
151 }
152 b.ResetTimer()
153
154 for i := 0; i < b.N; i++ {
155 if !testProvider.Verify(req) {
156 b.Fatal("failed to verify request")
157 }
158 }
159}

Callers

nothing calls this directly

Calls 2

TokenMethod · 0.65
VerifyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…