MCPcopy
hub / github.com/labstack/echo / BenchmarkContext_Store

Function BenchmarkContext_Store

context_test.go:1039–1052  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1037}
1038
1039func BenchmarkContext_Store(b *testing.B) {
1040 e := &Echo{}
1041
1042 c := &Context{
1043 echo: e,
1044 }
1045
1046 for n := 0; n < b.N; n++ {
1047 c.Set("name", "Jon Snow")
1048 if c.Get("name") != "Jon Snow" {
1049 b.Fail()
1050 }
1051 }
1052}
1053
1054type validator struct{}
1055

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
GetMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…