Documentation ¶
Index ¶
- type MockLogStorer
- type MockLogStorer_Expecter
- type MockLogStorer_StoreLog_Call
- func (_c *MockLogStorer_StoreLog_Call) Return(_a0 storer.LogStorageError) *MockLogStorer_StoreLog_Call
- func (_c *MockLogStorer_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockLogStorer_StoreLog_Call
- func (_c *MockLogStorer_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) storer.LogStorageError) *MockLogStorer_StoreLog_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLogStorer ¶
MockLogStorer is an autogenerated mock type for the LogStorer type
func NewMockLogStorer ¶
func NewMockLogStorer(t interface { mock.TestingT Cleanup(func()) }) *MockLogStorer
NewMockLogStorer creates a new instance of MockLogStorer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockLogStorer) EXPECT ¶
func (_m *MockLogStorer) EXPECT() *MockLogStorer_Expecter
func (*MockLogStorer) StoreLog ¶
func (_m *MockLogStorer) StoreLog(ctx context.Context, event types.Log) storer.LogStorageError
StoreLog provides a mock function with given fields: ctx, event
type MockLogStorer_Expecter ¶
type MockLogStorer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLogStorer_Expecter) StoreLog ¶
func (_e *MockLogStorer_Expecter) StoreLog(ctx interface{}, event interface{}) *MockLogStorer_StoreLog_Call
StoreLog is a helper method to define mock.On call
- ctx context.Context
- event types.Log
type MockLogStorer_StoreLog_Call ¶
MockLogStorer_StoreLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreLog'
func (*MockLogStorer_StoreLog_Call) Return ¶
func (_c *MockLogStorer_StoreLog_Call) Return(_a0 storer.LogStorageError) *MockLogStorer_StoreLog_Call
func (*MockLogStorer_StoreLog_Call) Run ¶
func (_c *MockLogStorer_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockLogStorer_StoreLog_Call
func (*MockLogStorer_StoreLog_Call) RunAndReturn ¶
func (_c *MockLogStorer_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) storer.LogStorageError) *MockLogStorer_StoreLog_Call
Click to show internal directories.
Click to hide internal directories.