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

Method externalID

resource_handler_test.go:194–204  ·  view source on GitHub ↗
(attributes ResourceAttributes)

Source from the content-addressed store, hash-verified

192}
193
194func (h testResourceHandler) externalID(attributes ResourceAttributes) optional.String {
195 if eID, ok := attributes["externalId"]; ok {
196 externalID, ok := eID.(string)
197 if !ok {
198 return optional.String{}
199 }
200 return optional.NewString(externalID)
201 }
202
203 return optional.String{}
204}
205
206func (h testResourceHandler) noContentOperation(id string, op PatchOperation) bool {
207 isRemoveOp := strings.EqualFold(op.Op, PatchOperationRemove)

Callers 5

CreateMethod · 0.95
GetMethod · 0.95
GetAllMethod · 0.95
PatchMethod · 0.95
ReplaceMethod · 0.95

Calls 1

NewStringFunction · 0.92

Tested by

no test coverage detected