1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00
echo/group_test.go
Vishal Rana caf3bd31eb - Handler and middleware signature changed
- Pre chain middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-15 19:32:16 -08:00

18 lines
299 B
Go

package echo
import "testing"
func TestGroup(t *testing.T) {
g := New().Group("/group")
h := HandlerFunc(func(Context) error { return nil })
g.Connect("/", h)
g.Delete("/", h)
g.Get("/", h)
g.Head("/", h)
g.Options("/", h)
g.Patch("/", h)
g.Post("/", h)
g.Put("/", h)
g.Trace("/", h)
}