MCPcopy Create free account
hub / github.com/kataras/iris / TestCustomWrapper

Function TestCustomWrapper

_examples/routing/custom-wrapper/main_test.go:47–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestCustomWrapper(t *testing.T) {
48 app := newApp()
49 e := httptest.New(t, app)
50
51 for _, u := range urls {
52 url := u.String()
53 contents := u.loadFromBase("./public")
54
55 e.GET(url).Expect().
56 Status(httptest.StatusOK).
57 Body().IsEqual(contents)
58 }
59
60 e.GET("/other/something").Expect().Status(httptest.StatusOK)
61}

Callers

nothing calls this directly

Calls 6

NewFunction · 0.92
StatusMethod · 0.80
newAppFunction · 0.70
StringMethod · 0.65
BodyMethod · 0.65
loadFromBaseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…