MCPcopy Create free account
hub / github.com/goadesign/goa / copyReqs

Function copyReqs

expr/method.go:440–446  ·  view source on GitHub ↗

helper function that duplicates just enough of a security expression so that its scheme names can be overridden without affecting the original.

(reqs []*SecurityExpr)

Source from the content-addressed store, hash-verified

438// helper function that duplicates just enough of a security expression so that
439// its scheme names can be overridden without affecting the original.
440func copyReqs(reqs []*SecurityExpr) []*SecurityExpr {
441 reqs2 := make([]*SecurityExpr, len(reqs))
442 for i, req := range reqs {
443 reqs2[i] = DupRequirement(req)
444 }
445 return reqs2
446}

Callers 1

FinalizeMethod · 0.85

Calls 1

DupRequirementFunction · 0.85

Tested by

no test coverage detected