MockSequence is a mock response builder that is created from a sequence of concrete responses. Every time when a `MockBroker` calls its `For` method the next response from the sequence is returned. When the end of the sequence is reached the last element from the sequence is returned.
| 42 | // the next response from the sequence is returned. When the end of the |
| 43 | // sequence is reached the last element from the sequence is returned. |
| 44 | type MockSequence struct { |
| 45 | responses []MockResponse |
| 46 | } |
| 47 | |
| 48 | func NewMockSequence(responses ...any) *MockSequence { |
| 49 | ms := &MockSequence{} |
nothing calls this directly
no outgoing calls
no test coverage detected