(t *testing.T, body map[string]any)
| 40 | } |
| 41 | |
| 42 | func (f *patchFixture) patch(t *testing.T, body map[string]any) (int, map[string]any) { |
| 43 | t.Helper() |
| 44 | rr := doRequest(f.srv, "POST", f.path+"/patch", body) |
| 45 | var out map[string]any |
| 46 | _ = json.Unmarshal(rr.Body.Bytes(), &out) |
| 47 | return rr.Code, out |
| 48 | } |
| 49 | |
| 50 | func edits(pairs ...string) []map[string]any { |
| 51 | var out []map[string]any |
no test coverage detected