MCPcopy Create free account
hub / github.com/PostHog/duckgres / doPost

Function doPost

controlplane/admin/kill_switch_test.go:23–32  ·  view source on GitHub ↗
(t *testing.T, r *gin.Engine, path string)

Source from the content-addressed store, hash-verified

21}
22
23func doPost(t *testing.T, r *gin.Engine, path string) (int, map[string]any) {
24 t.Helper()
25 w := httptest.NewRecorder()
26 r.ServeHTTP(w, httptest.NewRequest(http.MethodPost, path, nil))
27 var body map[string]any
28 if w.Body.Len() > 0 {
29 _ = json.Unmarshal(w.Body.Bytes(), &body)
30 }
31 return w.Code, body
32}
33
34// TestKillUserSessionsFansOut: the kill endpoint kills locally AND sums peer
35// counts, reporting cluster-wide totals.

Calls

no outgoing calls

Tested by

no test coverage detected