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

Method Delete

resource_handler_test.go:56–67  ·  view source on GitHub ↗
(r *http.Request, id string)

Source from the content-addressed store, hash-verified

54}
55
56func (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
69func (h testResourceHandler) Get(r *http.Request, id string) (Resource, error) {
70 // check if resource exists

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected