(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestCheckError(t *testing.T) { |
| 11 | err := fmt.Errorf("error message") |
| 12 | scimErr := CheckScimError(err, http.MethodGet) |
| 13 | if scimErr.Detail != err.Error() { |
| 14 | t.Error("invalid detail message") |
| 15 | } |
| 16 | if scimErr.Status != 500 { |
| 17 | t.Errorf("status code 500 expected, got %d", scimErr.Status) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestCheckScimError(t *testing.T) { |
| 22 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…