(r *http.Request, id string)
| 54 | } |
| 55 | |
| 56 | func (h testResourceHandler) Delete(r *http.Request, id string) error { |
| 57 | // check if resource exists |
| 58 | _, ok := h.data[id] |
| 59 | if !ok { |
| 60 | return errors.ScimErrorResourceNotFound(id) |
| 61 | } |
| 62 | |
| 63 | // delete resource |
| 64 | delete(h.data, id) |
| 65 | |
| 66 | return nil |
| 67 | } |
| 68 | |
| 69 | func (h testResourceHandler) Get(r *http.Request, id string) (Resource, error) { |
| 70 | // check if resource exists |
nothing calls this directly
no test coverage detected