MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / checkUpdatePluginVersionRequest

Function checkUpdatePluginVersionRequest

cli/cmd/plugin_publish_test.go:388–403  ·  view source on GitHub ↗
(t *testing.T, r *http.Request)

Source from the content-addressed store, hash-verified

386}
387
388func 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
405func checkCreateTablesRequest(t *testing.T, r *http.Request) {
406 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected