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

Function NewMockFindCoordinatorResponse

mockresponses.go:451–457  ·  view source on GitHub ↗
(t TestReporter)

Source from the content-addressed store, hash-verified

449}
450
451func NewMockFindCoordinatorResponse(t TestReporter) *MockFindCoordinatorResponse {
452 return &MockFindCoordinatorResponse{
453 groupCoordinators: make(map[string]any),
454 transCoordinators: make(map[string]any),
455 t: t,
456 }
457}
458
459func (mr *MockFindCoordinatorResponse) SetCoordinator(coordinatorType CoordinatorType, group string, broker *MockBroker) *MockFindCoordinatorResponse {
460 switch coordinatorType {

Calls

no outgoing calls