(t *testing.T)
| 945 | } |
| 946 | |
| 947 | func 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 | |
| 955 | func TestEchoServeHTTPPathEncoding(t *testing.T) { |
| 956 | e := New() |