(t *testing.T, test routeTest)
| 1934 | } |
| 1935 | |
| 1936 | func testQueriesTemplates(t *testing.T, test routeTest) { |
| 1937 | route := test.route |
| 1938 | queries, queriesErr := route.GetQueriesTemplates() |
| 1939 | gotQueries := strings.Join(queries, ",") |
| 1940 | if test.queriesTemplate != "" && queriesErr == nil && gotQueries != test.queriesTemplate { |
| 1941 | t.Errorf("(%v) GetQueriesTemplates not equal: expected %v, got %v", test.title, test.queriesTemplate, gotQueries) |
| 1942 | } |
| 1943 | } |
| 1944 | |
| 1945 | type TestA301ResponseWriter struct { |
| 1946 | hh http.Header |
no test coverage detected