(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo)
| 906 | } |
| 907 | |
| 908 | func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) { |
| 909 | for _, gotRoute := range gotRoutes { |
| 910 | if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method { |
| 911 | assert.Regexp(t, wantRoute.Handler, gotRoute.Handler) |
| 912 | return |
| 913 | } |
| 914 | } |
| 915 | t.Errorf("route not found: %v", wantRoute) |
| 916 | } |
| 917 | |
| 918 | func handlerTest1(c *Context) {} |
| 919 | func handlerTest2(c *Context) {} |
no outgoing calls
no test coverage detected