MCPcopy Create free account
hub / github.com/elimity-com/scim / TestCheckError

Function TestCheckError

errors/errors_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func 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
21func TestCheckScimError(t *testing.T) {
22 for _, test := range []struct {

Callers

nothing calls this directly

Calls 2

CheckScimErrorFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…