(matchers ...PathMatcher)
| 104 | } |
| 105 | |
| 106 | func NewCompositeMatcher(matchers ...PathMatcher) PathMatcher { |
| 107 | if len(matchers) == 0 { |
| 108 | return EmptyMatcher{} |
| 109 | } |
| 110 | return CompositePathMatcher{Matchers: matchers} |
| 111 | } |
| 112 | |
| 113 | func (c CompositePathMatcher) Matches(f string) (bool, error) { |
| 114 | for _, t := range c.Matchers { |
no outgoing calls
no test coverage detected