Testing handler tracks received events in ResultChannel
| 33 | |
| 34 | // Testing handler tracks received events in ResultChannel |
| 35 | type TestingHandler struct { |
| 36 | ResultChannel chan interface{} // channel for tracking async results |
| 37 | HandledEvent EventType |
| 38 | handleDelay int // long running handler execution |
| 39 | t *testing.T // enclosing test instance |
| 40 | } |
| 41 | |
| 42 | func (th *TestingHandler) HandleEvent(_ context.Context, event Event) bool { |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected