testing

package
v0.22.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NonValidatingNewConsumerGroupFn

func NonValidatingNewConsumerGroupFn(mockConsumerGroup sarama.ConsumerGroup) wrapper.NewConsumerGroupFnType

Non-Validating NewConsumerGroup Function

func RestoreNewConsumerGroupFn

func RestoreNewConsumerGroupFn()

Restore The NewConsumerGroupFn To Official Production Value

func StubNewConsumerGroupFn

func StubNewConsumerGroupFn(stubNewConsumerGroupFn wrapper.NewConsumerGroupFnType)

Replace The NewConsumerGroupFn With Specified Mock / Test Value

func ValidatingNewConsumerGroupFn

func ValidatingNewConsumerGroupFn(t *testing.T,
	expectedBrokers []string,
	expectedGroupId string,
	expectedConfig *sarama.Config,
	mockConsumerGroup sarama.ConsumerGroup) wrapper.NewConsumerGroupFnType

Validating NewConsumerGroup Function

Types

type MockConsumerGroup

type MockConsumerGroup struct {
	Closed bool
	// contains filtered or unexported fields
}

func NewMockConsumerGroup

func NewMockConsumerGroup() *MockConsumerGroup

func (*MockConsumerGroup) Close

func (m *MockConsumerGroup) Close() error

func (*MockConsumerGroup) Consume

func (*MockConsumerGroup) Errors

func (m *MockConsumerGroup) Errors() <-chan error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL