(r *http.Request, id string)
| 125 | } |
| 126 | |
| 127 | func (h testResourceHandler) Get(r *http.Request, id string) (scim.Resource, error) { |
| 128 | resource, ok := h.data[id] |
| 129 | if !ok { |
| 130 | return scim.Resource{}, errors.ScimErrorResourceNotFound(id) |
| 131 | } |
| 132 | return scim.Resource{ |
| 133 | ID: id, |
| 134 | ExternalID: externalID(resource.attributes), |
| 135 | Attributes: resource.attributes, |
| 136 | Meta: resource.meta, |
| 137 | }, nil |
| 138 | } |
| 139 | |
| 140 | func (h testResourceHandler) GetAll(r *http.Request, params scim.ListRequestParams) (scim.Page, error) { |
| 141 | if params.Count == 0 { |
nothing calls this directly
no test coverage detected