(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestBindJSON(t *testing.T) { |
| 203 | testBindOkay(t, strings.NewReader(userJSON), nil, MIMEApplicationJSON) |
| 204 | testBindOkay(t, strings.NewReader(userJSON), dummyQuery, MIMEApplicationJSON) |
| 205 | testBindArrayOkay(t, strings.NewReader(usersJSON), nil, MIMEApplicationJSON) |
| 206 | testBindArrayOkay(t, strings.NewReader(usersJSON), dummyQuery, MIMEApplicationJSON) |
| 207 | testBindError(t, strings.NewReader(invalidContent), MIMEApplicationJSON, &json.SyntaxError{}) |
| 208 | testBindError(t, strings.NewReader(userJSONInvalidType), MIMEApplicationJSON, &json.UnmarshalTypeError{}) |
| 209 | } |
| 210 | |
| 211 | func TestBindXML(t *testing.T) { |
| 212 | testBindOkay(t, strings.NewReader(userXML), nil, MIMEApplicationXML) |
nothing calls this directly
no test coverage detected
searching dependent graphs…