helper function that duplicates just enough of a security expression so that its scheme names can be overridden without affecting the original.
(reqs []*SecurityExpr)
| 438 | // helper function that duplicates just enough of a security expression so that |
| 439 | // its scheme names can be overridden without affecting the original. |
| 440 | func 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 | } |
no test coverage detected