MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / TestErrorHandler

Function TestErrorHandler

server_test.go:38–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestErrorHandler(t *testing.T) {
39 rr := httptest.NewRecorder()
40 err := errors.New("New error")
41 errorPage(rr, err)
42}
43
44func TestIndexHandler(t *testing.T) {
45 req, err := http.NewRequest("GET", "/", nil)

Callers

nothing calls this directly

Calls 1

errorPageFunction · 0.85

Tested by

no test coverage detected