Method
listMatch
(con interface{}, hasChecksums bool)
Source from the content-addressed store, hash-verified
| 325 | } |
| 326 | |
| 327 | func (o *Operator) listMatch(con interface{}, hasChecksums bool) bool { |
| 328 | res := true |
| 329 | for i := 0; i < len(o.List); i++ { |
| 330 | res = res && o.List[i].Match(con.(*conman.Connection), hasChecksums) |
| 331 | } |
| 332 | return res |
| 333 | } |
| 334 | |
| 335 | // Match tries to match parts of a connection with the given operator. |
| 336 | func (o *Operator) Match(con *conman.Connection, hasChecksums bool) bool { |
Tested by
no test coverage detected