(labels []cortexpb.LabelAdapter, matchers []*labels.Matcher)
| 4074 | } |
| 4075 | |
| 4076 | func match(labels []cortexpb.LabelAdapter, matchers []*labels.Matcher) bool { |
| 4077 | outer: |
| 4078 | for _, matcher := range matchers { |
| 4079 | for _, labels := range labels { |
| 4080 | if matcher.Name == labels.Name && matcher.Matches(labels.Value) { |
| 4081 | continue outer |
| 4082 | } |
| 4083 | } |
| 4084 | return false |
| 4085 | } |
| 4086 | return true |
| 4087 | } |
| 4088 | |
| 4089 | func TestDistributorValidation(t *testing.T) { |
| 4090 | t.Parallel() |
no outgoing calls
no test coverage detected