MCPcopy Index your code
hub / github.com/labstack/echo / TestEchoMiddlewareError

Function TestEchoMiddlewareError

echo_test.go:684–694  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

682}
683
684func TestEchoMiddlewareError(t *testing.T) {
685 e := New()
686 e.Use(func(next HandlerFunc) HandlerFunc {
687 return func(c *Context) error {
688 return errors.New("error")
689 }
690 })
691 e.GET("/", notFoundHandler)
692 c, _ := request(http.MethodGet, "/", e)
693 assert.Equal(t, http.StatusInternalServerError, c)
694}
695
696func TestEchoHandler(t *testing.T) {
697 e := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
requestFunction · 0.85
UseMethod · 0.45
GETMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…