(t *testing.T, r *http.Request)
| 351 | } |
| 352 | |
| 353 | func checkAuthHeader(t *testing.T, r *http.Request) { |
| 354 | t.Helper() |
| 355 | |
| 356 | wantAuth := "Bearer testkey" |
| 357 | if r.Header.Get("Authorization") != wantAuth { |
| 358 | t.Fatalf("expected Authorization header to be %q, got %q", wantAuth, r.Header.Get("Authorization")) |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | func checkCreatePluginVersionRequest(t *testing.T, r *http.Request) { |
| 363 | t.Helper() |
no test coverage detected