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

Method Get

mvc/controller_handle_test.go:71–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69func (c *testControllerHandle) EndRequest(ctx iris.Context) {}
70
71func (c *testControllerHandle) Get() string {
72 if c.Ctx.GetCurrentRoute().Name() != "index_route" {
73 return "Get's route's name didn't change on AfterActivation"
74 }
75 return "index"
76}
77
78func (c *testControllerHandle) HiStatic() string {
79 if c.Ctx.GetCurrentRoute().Name() != "hi_static_route" {

Callers

nothing calls this directly

Calls 2

GetCurrentRouteMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected