fakeThrottler is a fake implementation of the adaptiveThrottler interface.
| 67 | |
| 68 | // fakeThrottler is a fake implementation of the adaptiveThrottler interface. |
| 69 | type fakeThrottler struct { |
| 70 | throttleFunc func() bool // Fake throttler implementation. |
| 71 | throttleCh chan struct{} // Invocation of ShouldThrottle signals here. |
| 72 | } |
| 73 | |
| 74 | func (f *fakeThrottler) ShouldThrottle() bool { |
| 75 | select { |
nothing calls this directly
no outgoing calls
no test coverage detected