(rw http.ResponseWriter, _ *http.Request)
| 16 | } |
| 17 | |
| 18 | func (m *mockAIUpstreamServer) ServeHTTP(rw http.ResponseWriter, _ *http.Request) { |
| 19 | m.hitCounter.Add(1) |
| 20 | |
| 21 | rw.WriteHeader(http.StatusTeapot) |
| 22 | _, _ = rw.Write([]byte(`i am a teapot`)) |
| 23 | } |
| 24 | |
| 25 | func (m *mockAIUpstreamServer) Hits() int32 { |
| 26 | return m.hitCounter.Load() |
nothing calls this directly
no test coverage detected