InvocationRecorderSpy adds invocation sampling to EventRecorderSpy.
| 39 | |
| 40 | // InvocationRecorderSpy adds invocation sampling to EventRecorderSpy. |
| 41 | type InvocationRecorderSpy struct { |
| 42 | EventRecorderSpy |
| 43 | LastSampleRate int |
| 44 | } |
| 45 | |
| 46 | // SetSampleRate captures the sampling policy requested by a command. |
| 47 | func (r *InvocationRecorderSpy) SetSampleRate(rate int) { |
nothing calls this directly
no outgoing calls
no test coverage detected