test that Values(input) matches want. If not, report an error on t.
(t *testing.T, input interface{}, want url.Values)
| 17 | |
| 18 | // test that Values(input) matches want. If not, report an error on t. |
| 19 | func testValue(t *testing.T, input interface{}, want url.Values) { |
| 20 | v, err := Values(input) |
| 21 | if err != nil { |
| 22 | t.Errorf("Values(%q) returned error: %v", input, err) |
| 23 | } |
| 24 | if diff := cmp.Diff(want, v); diff != "" { |
| 25 | t.Errorf("Values(%#v) mismatch:\n%s", input, diff) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func TestValues_BasicTypes(t *testing.T) { |
| 30 | tests := []struct { |
no test coverage detected
searching dependent graphs…