(t *testing.T)
| 322 | } |
| 323 | |
| 324 | func TestConsumerUnexpectedTopicMetadata(t *testing.T) { |
| 325 | trm := newTestReporterMock() |
| 326 | consumer := NewConsumer(trm, NewTestConfig()) |
| 327 | |
| 328 | if _, err := consumer.Topics(); !errors.Is(err, sarama.ErrOutOfBrokers) { |
| 329 | t.Error("Expected sarama.ErrOutOfBrokers, found", err) |
| 330 | } |
| 331 | |
| 332 | if len(trm.errors) != 1 { |
| 333 | t.Errorf("Expected an expectation failure to be set on the error reporter.") |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | func TestConsumerOffsetsAreManagedCorrectlyWithOffsetOldest(t *testing.T) { |
| 338 | trm := newTestReporterMock() |
nothing calls this directly
no test coverage detected