MCPcopy
hub / github.com/segmentio/kafka-go / TestReaderPartitionWhenConsumerGroupsEnabled

Function TestReaderPartitionWhenConsumerGroupsEnabled

reader_test.go:702–720  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

700}
701
702func TestReaderPartitionWhenConsumerGroupsEnabled(t *testing.T) {
703 invoke := func() (boom bool) {
704 defer func() {
705 if r := recover(); r != nil {
706 boom = true
707 }
708 }()
709
710 NewReader(ReaderConfig{
711 GroupID: "set",
712 Partition: 1,
713 })
714 return false
715 }
716
717 if !invoke() {
718 t.Fatalf("expected panic; but NewReader worked?!")
719 }
720}
721
722func TestExtractTopics(t *testing.T) {
723 testCases := map[string]struct {

Callers

nothing calls this directly

Calls 1

NewReaderFunction · 0.85

Tested by

no test coverage detected