Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacheStore ¶
func (*MockCacheStore) Close ¶
func (mcs *MockCacheStore) Close() error
type MockFlagStore ¶
type MockMessageProducer ¶
type MockMessageProducer struct {
Key []byte
Value []byte
ExecutionCount int
// Fail makes every push fail.
Fail bool
// contains filtered or unexported fields
}
func (*MockMessageProducer) Executions ¶
func (mp *MockMessageProducer) Executions() int
Executions returns ExecutionCount, safe to read while a goroutine pushes.
func (*MockMessageProducer) GetTopic ¶
func (mp *MockMessageProducer) GetTopic() string
func (*MockMessageProducer) Produce ¶
func (mp *MockMessageProducer) Produce(ctx context.Context, msg *kafka.ProducerMessage) bool
type MockedStore ¶
func SetupMockStore ¶
func SetupMockStore(t *testing.T) (*MockedStore, func())
Click to show internal directories.
Click to hide internal directories.