From 05736c6b1b91cc114ee380c0dc4ff93341b4556e Mon Sep 17 00:00:00 2001 From: AH-dark Date: Tue, 23 Aug 2022 14:37:17 +0800 Subject: [PATCH] test: unit test for Handlers method in RouterGroup interface --- routergroup_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routergroup_test.go b/routergroup_test.go index 41f96372..a24ae168 100644 --- a/routergroup_test.go +++ b/routergroup_test.go @@ -178,6 +178,7 @@ func testRoutesInterface(t *testing.T, r IRoutes) { assert.Equal(t, r, r.Use(handler)) assert.Equal(t, r, r.Handle(http.MethodGet, "/handler", handler)) + assert.Equal(t, r, r.Handles([]string{http.MethodGet, http.MethodHead, http.MethodPost}, "/handlers", handler)) assert.Equal(t, r, r.Any("/any", handler)) assert.Equal(t, r, r.GET("/", handler)) assert.Equal(t, r, r.POST("/", handler))