(t *testing.T, ctx context.Context, path string)
| 51 | } |
| 52 | |
| 53 | func (l *LAPI) InsertAlertFromFile(t *testing.T, ctx context.Context, path string) *httptest.ResponseRecorder { |
| 54 | alertReader := GetAlertReaderFromFile(t, path) |
| 55 | return l.RecordResponse(t, ctx, http.MethodPost, "/v1/alerts", alertReader, "password") |
| 56 | } |
| 57 | |
| 58 | func (l *LAPI) RecordResponse(t *testing.T, ctx context.Context, verb string, url string, body *strings.Reader, authType string) *httptest.ResponseRecorder { |
| 59 | w := httptest.NewRecorder() |
no test coverage detected