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

Function TestEchoMatch

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

Source from the content-addressed store, hash-verified

945}
946
947func TestEchoMatch(t *testing.T) { // JFC
948 e := New()
949 ris := e.Match([]string{http.MethodGet, http.MethodPost}, "/", func(c *Context) error {
950 return c.String(http.StatusOK, "Match")
951 })
952 assert.Len(t, ris, 2)
953}
954
955func TestEchoServeHTTPPathEncoding(t *testing.T) {
956 e := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
MatchMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…