(t *testing.T, test routeTest)
| 1917 | } |
| 1918 | |
| 1919 | func testRegexp(t *testing.T, test routeTest) { |
| 1920 | route := test.route |
| 1921 | routePathRegexp, regexpErr := route.GetPathRegexp() |
| 1922 | if test.pathRegexp != "" && regexpErr == nil && routePathRegexp != test.pathRegexp { |
| 1923 | t.Errorf("(%v) GetPathRegexp not equal: expected %v, got %v", test.title, test.pathRegexp, routePathRegexp) |
| 1924 | } |
| 1925 | } |
| 1926 | |
| 1927 | func testQueriesRegexp(t *testing.T, test routeTest) { |
| 1928 | route := test.route |
no test coverage detected