testing

package
v0.25.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorNewAdminClientFn

func ErrorNewAdminClientFn(err error) wrapper.NewAdminClientFnType

Error NewAdminClient Function

func NewMockAdminClient

func NewMockAdminClient() types.AdminClientInterface

func NonValidatingNewAdminClientFn

func NonValidatingNewAdminClientFn(mockAdminClient types.AdminClientInterface) wrapper.NewAdminClientFnType

Non-Validating NewAdminClient Function

func RestoreNewAdminClientFn

func RestoreNewAdminClientFn()

Restore The NewAdminClientFn To Official Production Value

func StubNewAdminClientFn

func StubNewAdminClientFn(stubNewAdminClientFn wrapper.NewAdminClientFnType)

Replace The NewAdminClientFn With Specified Mock / Test Value

func ValidatingNewAdminClientFn

func ValidatingNewAdminClientFn(t *testing.T,
	expectedCtx context.Context,
	expectedBrokers []string,
	expectedConfig *sarama.Config,
	expectedAdminClientType types.AdminClientType,
	mockAdminClient types.AdminClientInterface) wrapper.NewAdminClientFnType

Validating NewAdminClient Function

Types

type MockAdminClient

type MockAdminClient struct {
}

func (MockAdminClient) Close

func (c MockAdminClient) Close() error

func (MockAdminClient) CreateTopic

func (MockAdminClient) DeleteTopic

Jump to

Keyboard shortcuts

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