MCPcopy Create free account
hub / github.com/OpenTreeHole/treehole_next / TestAddReport

Function TestAddReport

tests/report_test.go:61–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestAddReport(t *testing.T) {
62 data := Map{"floor_id": REPORT_FLOOR_BASE_ID + 14, "reason": "123456789"}
63
64 testAPI(t, "post", "/api/reports", 204, data)
65}
66
67func TestDeleteReport(t *testing.T) {
68 reportID := REPORT_BASE_ID + 7

Callers

nothing calls this directly

Calls 1

testAPIFunction · 0.85

Tested by

no test coverage detected