alwaysThrottlingThrottler returns a fake throttler which always throttles.
()
| 85 | |
| 86 | // alwaysThrottlingThrottler returns a fake throttler which always throttles. |
| 87 | func alwaysThrottlingThrottler() *fakeThrottler { |
| 88 | return &fakeThrottler{ |
| 89 | throttleFunc: func() bool { return true }, |
| 90 | throttleCh: make(chan struct{}, 1), |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // neverThrottlingThrottler returns a fake throttler which never throttles. |
| 95 | func neverThrottlingThrottler() *fakeThrottler { |
no outgoing calls
no test coverage detected