1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-15 13:53:06 +02:00
echo/group_test.go
Vishal Rana a9e49e2430 Total coverage for middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-30 10:54:55 -07:00

49 lines
983 B
Go

package echo
import "testing"
func TestGroupConnect(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, CONNECT, "/")
}
func TestGroupDelete(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, DELETE, "/")
}
func TestGroupGet(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, GET, "/")
}
func TestGroupHead(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, HEAD, "/")
}
func TestGroupOptions(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, OPTIONS, "/")
}
func TestGroupPatch(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, PATCH, "/")
}
func TestGroupPost(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, POST, "/")
}
func TestGroupPut(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, PUT, "/")
}
func TestGroupTrace(t *testing.T) {
g := New().Group("/group")
testMethod(t, &g.echo, g, TRACE, "/")
}