MCPcopy
hub / github.com/gin-gonic/gin / TestContextHandlerName

Function TestContextHandlerName

context_test.go:691–696  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

689}
690
691func TestContextHandlerName(t *testing.T) {
692 c, _ := CreateTestContext(httptest.NewRecorder())
693 c.handlers = HandlersChain{func(c *Context) {}, handlerNameTest}
694
695 assert.Regexp(t, "^(.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest$", c.HandlerName())
696}
697
698func TestContextHandlerNames(t *testing.T) {
699 c, _ := CreateTestContext(httptest.NewRecorder())

Callers

nothing calls this directly

Calls 2

CreateTestContextFunction · 0.85
HandlerNameMethod · 0.80

Tested by

no test coverage detected