MCPcopy
hub / github.com/IBM/sarama / MockSequence

Struct MockSequence

mockresponses.go:44–46  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
44type MockSequence struct {
45 responses []MockResponse
46}
47
48func NewMockSequence(responses ...any) *MockSequence {
49 ms := &MockSequence{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected