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

Function TestControllerHandleWithDynamicPathPrefix

mvc/controller_handle_test.go:171–177  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func TestControllerHandleWithDynamicPathPrefix(t *testing.T) {
172 app := iris.New()
173 New(app.Party("/api/data/{model:string}/{action:string}")).Handle(new(testControllerHandleWithDynamicPathPrefix))
174 e := httptest.New(t, app)
175 e.GET("/api/data/mymodel/myaction/myid").Expect().Status(httptest.StatusOK).
176 Body().IsEqual("mymodelmyactionmyid")
177}
178
179type testControllerGetBy struct{}
180

Callers

nothing calls this directly

Calls 7

NewFunction · 0.92
NewMethod · 0.80
StatusMethod · 0.80
NewFunction · 0.70
HandleMethod · 0.65
PartyMethod · 0.65
BodyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…