Skip to content
Myr

Fix typo on gin_test.go

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #550, change a duplicate assert on the Path of the route by an assert on Handler name associated with the route.

authored by Albin Gilles · committed by Albin Gilles · parent 31e4401 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:gin_test.go+1 added-1 removed
242 unmodified lines
243244func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) {245 for _, gotRoute := range gotRoutes {246 if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method {247 assert.Regexp(t, wantRoute.Path, gotRoute.Path)247 assert.Regexp(t, wantRoute.Handler, gotRoute.Handler)248 return249 }250 }251 t.Errorf("route not found: %v", wantRoute)
4 unmodified lines