// QueryResponder asserts the required query values are present in the
// request.
QueryResponder asserts the required query values are present in the
request.
// QueryResponder asserts the required query values are present in the // request .
func QueryResponder(t *testing.T, resp httpmock.Responder, q url.Values) httpmock.Responder {
	return func(r *http.Request) (*http.Response, error) {
		t.Helper()
		for k := range q {
			if q.Get(k) != "" {
				assert.Equal(t, q.Get(k), r.URL.Query().Get(k))
				continue
			}
			assert.Zero(t, r.URL.Query().Get(k))
		}
		return resp(r)
	}
}
func QueryResponder ( t * testing . T , resp httpmock . Responder , q url . Values ) httpmock . Responder { return func ( r * http . Request ) ( * http . Response , error ) { t . Helper ( ) for k := range q { if q . Get ( k ) != " " { assert . Equal ( t , q . Get ( k ) , r . URL . Query ( ) . Get ( k ) ) continue } assert . Zero ( t , r . URL . Query ( ) . Get ( k ) ) } return resp ( r ) } }
QueryResponder asserts the required query values are present in the
request.
QueryResponder asserts the required query values are present in the request .