(t *testing.T, r *http.Request)
| 386 | } |
| 387 | |
| 388 | func checkUpdatePluginVersionRequest(t *testing.T, r *http.Request) { |
| 389 | t.Helper() |
| 390 | |
| 391 | got := map[string]any{} |
| 392 | body, err := io.ReadAll(r.Body) |
| 393 | if err != nil { |
| 394 | t.Fatal(err) |
| 395 | } |
| 396 | err = json.Unmarshal(body, &got) |
| 397 | if err != nil { |
| 398 | t.Fatal(err) |
| 399 | } |
| 400 | if got["draft"].(bool) { |
| 401 | t.Fatalf("expected draft to be false, got %v", got["draft"]) |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | func checkCreateTablesRequest(t *testing.T, r *http.Request) { |
| 406 | t.Helper() |
no outgoing calls
no test coverage detected