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

Method For

consumer_group_test.go:405–418  ·  view source on GitHub ↗
(reqBody versionedDecoder)

Source from the content-addressed store, hash-verified

403}
404
405func (m *mockLeaveGroupCapture) For(reqBody versionedDecoder) encoderWithHeader {
406 req := reqBody.(*LeaveGroupRequest)
407 m.mu.Lock()
408 for _, member := range req.Members {
409 m.reasons = append(m.reasons, member.Reason)
410 }
411 select {
412 case <-m.captured:
413 default:
414 close(m.captured)
415 }
416 m.mu.Unlock()
417 return m.inner.For(reqBody)
418}
419
420// mockHeartbeatRebalanceResponse returns ErrNoError for the first N heartbeats,
421// then ErrRebalanceInProgress for all subsequent heartbeats.

Callers

nothing calls this directly

Calls 1

ForMethod · 0.65

Tested by

no test coverage detected