fakeMessagingClient implements messaging.MessagingClient, recording Publish and Request calls so we can assert on subjects and payloads.
| 47 | // fakeMessagingClient implements messaging.MessagingClient, recording Publish |
| 48 | // and Request calls so we can assert on subjects and payloads. |
| 49 | type fakeMessagingClient struct { |
| 50 | mu sync.Mutex |
| 51 | published []publishCall |
| 52 | publishErr error // error to return from Publish |
| 53 | requestReply []byte |
| 54 | requestErr error |
| 55 | requestCalls []requestCall |
| 56 | } |
| 57 | |
| 58 | type publishCall struct { |
| 59 | Subject string |
nothing calls this directly
no outgoing calls
no test coverage detected