(t *testing.T, r *gin.Engine, path string)
| 21 | } |
| 22 | |
| 23 | func 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. |
no outgoing calls
no test coverage detected