MCPcopy Index your code
hub / github.com/google/go-github / testFormValuesList

Function testFormValuesList

github/github_test.go:185–192  ·  view source on GitHub ↗

testFormValuesList checks that the request form values match the expected values. It allows for multiple values per key.

(t *testing.T, r *http.Request, want url.Values)

Source from the content-addressed store, hash-verified

183// testFormValuesList checks that the request form values match the expected values.
184// It allows for multiple values per key.
185func testFormValuesList(t *testing.T, r *http.Request, want url.Values) {
186 t.Helper()
187
188 assertNilError(t, r.ParseForm())
189 if got := r.Form; !cmp.Equal(got, want) {
190 t.Errorf("Request query parameters: %v, want %v", got, want)
191 }
192}
193
194func testHeader(t *testing.T, r *http.Request, header, want string) {
195 t.Helper()

Calls 2

EqualMethod · 0.80
assertNilErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…