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

Function TestIndex

tests/default_test.go:9–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestIndex(t *testing.T) {
10 testAPI(t, "get", "/", 302, nil)
11 testAPI(t, "get", "/api", 200, nil)
12 web404 := testAPI(t, "get", "/404", 404, nil)
13 assert.EqualValues(t, "Cannot GET /404", web404["message"])
14}
15
16func TestDocs(t *testing.T) {
17 testCommon(t, "get", "/docs", 302)

Callers

nothing calls this directly

Calls 1

testAPIFunction · 0.85

Tested by

no test coverage detected