(fr filters.Registry, cps []routing.PredicateSpec, dc ...routing.DataClient)
| 57 | } |
| 58 | |
| 59 | func newTestRoutingWithFiltersPredicates(fr filters.Registry, cps []routing.PredicateSpec, dc ...routing.DataClient) (*testRouting, error) { |
| 60 | tl := loggingtest.New() |
| 61 | rt := routing.New(routing.Options{ |
| 62 | FilterRegistry: fr, |
| 63 | Predicates: cps, |
| 64 | DataClients: dc, |
| 65 | PollTimeout: pollTimeout, |
| 66 | Log: tl}) |
| 67 | tr := &testRouting{tl, rt} |
| 68 | return tr, tr.waitForNRouteSettings(len(dc)) |
| 69 | } |
| 70 | |
| 71 | func newTestRoutingWithFilters(fr filters.Registry, dc ...routing.DataClient) (*testRouting, error) { |
| 72 | return newTestRoutingWithFiltersPredicates(fr, nil, dc...) |
no test coverage detected
searching dependent graphs…