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

Method Delete

server_test.go:119–125  ·  view source on GitHub ↗
(r *http.Request, id string)

Source from the content-addressed store, hash-verified

117}
118
119func (h *testResourceHandler) Delete(r *http.Request, id string) error {
120 if _, ok := h.data[id]; !ok {
121 return errors.ScimErrorResourceNotFound(id)
122 }
123 delete(h.data, id)
124 return nil
125}
126
127func (h testResourceHandler) Get(r *http.Request, id string) (scim.Resource, error) {
128 resource, ok := h.data[id]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected