(b *testing.B)
| 93 | } |
| 94 | |
| 95 | func BenchmarkContext_GetSet(b *testing.B) { |
| 96 | e := New() |
| 97 | c := e.NewContext(httptest.NewRequest(http.MethodGet, "/", nil), &nopResponseWriter{}) |
| 98 | b.ReportAllocs() |
| 99 | b.ResetTimer() |
| 100 | for i := 0; i < b.N; i++ { |
| 101 | c.Set("key", i) |
| 102 | _ = c.Get("key") |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | type bindTarget struct { |
| 107 | ID int `json:"id" query:"id"` |
nothing calls this directly
no test coverage detected
searching dependent graphs…