(t *testing.T)
| 790 | } |
| 791 | |
| 792 | func TestReaderConsumerGroup(t *testing.T) { |
| 793 | tests := []struct { |
| 794 | scenario string |
| 795 | partitions int |
| 796 | commitInterval time.Duration |
| 797 | function func(*testing.T, context.Context, *Reader) |
| 798 | }{ |
| 799 | { |
| 800 | scenario: "basic handshake", |
| 801 | partitions: 1, |
| 802 | function: testReaderConsumerGroupHandshake, |
| 803 | }, |
| 804 | { |
| 805 | scenario: "verify offset committed", |
| 806 | partitions: 1, |
| 807 | function: testReaderConsumerGroupVerifyOffsetCommitted, |
| 808 | }, |
| 809 | |
| 810 | { |
| 811 | scenario: "verify offset committed when using interval committer", |
| 812 | partitions: 1, |
| 813 | commitInterval: 400 * time.Millisecond, |
| 814 | function: testReaderConsumerGroupVerifyPeriodicOffsetCommitter, |
| 815 | }, |
| 816 | |
| 817 | { |
| 818 | scenario: "rebalance across many partitions and consumers", |
| 819 | partitions: 8, |
| 820 | function: testReaderConsumerGroupRebalanceAcrossManyPartitionsAndConsumers, |
| 821 | }, |
| 822 | |
| 823 | { |
| 824 | scenario: "consumer group commits on close", |
| 825 | partitions: 3, |
| 826 | function: testReaderConsumerGroupVerifyCommitsOnClose, |
| 827 | }, |
| 828 | |
| 829 | { |
| 830 | scenario: "consumer group rebalance", |
| 831 | partitions: 3, |
| 832 | function: testReaderConsumerGroupRebalance, |
| 833 | }, |
| 834 | |
| 835 | { |
| 836 | scenario: "consumer group rebalance across topics", |
| 837 | partitions: 3, |
| 838 | function: testReaderConsumerGroupRebalanceAcrossTopics, |
| 839 | }, |
| 840 | |
| 841 | { |
| 842 | scenario: "consumer group reads content across partitions", |
| 843 | partitions: 3, |
| 844 | function: testReaderConsumerGroupReadContentAcrossPartitions, |
| 845 | }, |
| 846 | |
| 847 | { |
| 848 | scenario: "Close immediately after NewReader", |
| 849 | partitions: 1, |
nothing calls this directly
no test coverage detected
searching dependent graphs…