(d Domain, domains ...Domain)
| 107 | } |
| 108 | |
| 109 | func notInDomainInternal(d Domain, domains ...Domain) bool { |
| 110 | for _, given := range domains { |
| 111 | if d == given { |
| 112 | return false |
| 113 | } |
| 114 | } |
| 115 | return true |
| 116 | } |
| 117 | |
| 118 | // EnsureNotInDomain checks whether the error is in the given domain(s). |
| 119 | // If it is, the given constructor if provided is called to construct |
no outgoing calls
no test coverage detected
searching dependent graphs…