(labels []string)
| 159 | } |
| 160 | |
| 161 | func (r Resolver) statusForLabels(labels []string) AttributionStatus { |
| 162 | if len(labels) == 0 { |
| 163 | return AttributionUnlinked |
| 164 | } |
| 165 | if r.MatchLabels == nil { |
| 166 | return AttributionUnmapped |
| 167 | } |
| 168 | if len(r.MatchLabels(labels)) > 0 { |
| 169 | return AttributionMapped |
| 170 | } |
| 171 | return AttributionUnmapped |
| 172 | } |
| 173 | |
| 174 | func cloneStrings(values []string) []string { |
| 175 | if len(values) == 0 { |
no outgoing calls
no test coverage detected