| 228 | } |
| 229 | |
| 230 | type randomBalancer struct { |
| 231 | mock int // mocked return value, used for testing |
| 232 | } |
| 233 | |
| 234 | func (b randomBalancer) Balance(msg Message, partitions ...int) (partition int) { |
| 235 | if b.mock != 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected