(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestBindingError_ErrorJSON(t *testing.T) { |
| 58 | err := NewBindingError("id", []string{"1", "nope"}, "bind failed", errors.New("internal error")) |
| 59 | |
| 60 | resp, _ := json.Marshal(err) |
| 61 | |
| 62 | assert.Equal(t, `{"field":"id","message":"bind failed"}`, string(resp)) |
| 63 | } |
| 64 | |
| 65 | func TestPathValuesBinder(t *testing.T) { |
| 66 | c := createTestContext("/api/user/999", nil, map[string]string{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…