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

Function TestConsumerGroupStrategyCompatibility

config_test.go:577–583  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

575}
576
577func TestConsumerGroupStrategyCompatibility(t *testing.T) {
578 config := NewTestConfig()
579 config.Consumer.Group.Rebalance.Strategy = NewBalanceStrategySticky()
580 if err := config.Validate(); err != nil {
581 t.Error("Expected passing config validation, got ", err)
582 }
583}
584
585// This example shows how to integrate with an existing registry as well as publishing metrics
586// on the standard output

Callers

nothing calls this directly

Calls 4

NewBalanceStrategyStickyFunction · 0.85
ValidateMethod · 0.80
NewTestConfigFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected