(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestExtractQueryParameters(t *testing.T) { |
| 168 | req := httptest.NewRequest(http.MethodGet, "/?foo=bar&tag=a&tag=b", nil) |
| 169 | |
| 170 | data := map[string]interface{}{} |
| 171 | extractQueryParameters(req, data) |
| 172 | |
| 173 | require.Equal(t, "bar", data["foo"]) |
| 174 | require.Equal(t, []string{"a", "b"}, data["tag"]) |
| 175 | } |
nothing calls this directly
no test coverage detected