Files
echo/group_test.go
T

22 lines
416 B
Go
Raw Normal View History

2015-05-29 16:00:02 -07:00
package echo
import "testing"
2015-05-30 15:20:36 -07:00
func TestGroup(t *testing.T) {
2015-05-29 16:00:02 -07:00
g := New().Group("/group")
2016-04-02 14:19:39 -07:00
h := func(Context) error { return nil }
2015-05-30 15:20:36 -07:00
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)
2016-04-09 14:00:23 -07:00
g.Any("/", h)
g.Match([]string{GET, POST}, "/", h)
g.Static("/static", "/tmp")
g.File("/walle", "_fixture/images//walle.png")
2015-05-29 16:00:02 -07:00
}