mirror of https://github.com/gin-gonic/gin.git
commit
a7d3be5b8a
|
@ -244,7 +244,7 @@ func TestListOfRoutes(t *testing.T) {
|
||||||
func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) {
|
func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) {
|
||||||
for _, gotRoute := range gotRoutes {
|
for _, gotRoute := range gotRoutes {
|
||||||
if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method {
|
if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method {
|
||||||
assert.Regexp(t, wantRoute.Path, gotRoute.Path)
|
assert.Regexp(t, wantRoute.Handler, gotRoute.Handler)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue