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

Interface MockResponse

mockresponses.go:22–24  ·  mockresponses.go::MockResponse

MockResponse is a response builder interface it defines one method that allows generating a response based on a request body. MockResponses are used to program behavior of MockBroker in tests.

Source from the content-addressed store, hash-verified

20// allows generating a response based on a request body. MockResponses are used
21// to program behavior of MockBroker in tests.
22type MockResponse interface {
23 For(reqBody versionedDecoder) (res encoderWithHeader)
24}
25
26// MockWrapper is a mock response builder that returns a particular concrete
27// response regardless of the actual request passed to the `For` method.

Callers 8

SetHandlerByMapMethod · 0.65
ForMethod · 0.65
ForMethod · 0.65
ForMethod · 0.65
singleBrokerAdminFunction · 0.65

Implementers 15

readReplicaFetchconsumer_test.go
MockWrappermockresponses.go
MockSequencemockresponses.go
MockListGroupsResponsemockresponses.go
MockMetadataResponsemockresponses.go
MockOffsetResponsemockresponses.go
MockFetchResponsemockresponses.go
MockOffsetCommitResponsemockresponses.go
MockProduceResponsemockresponses.go

Calls

no outgoing calls

Tested by

no test coverage detected