storer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLogStorer

type MockLogStorer struct {
	mock.Mock
}

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

type MockLogStorer_StoreLog_Call struct {
	*mock.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 (*MockLogStorer_StoreLog_Call) Run

func (*MockLogStorer_StoreLog_Call) RunAndReturn

Jump to

Keyboard shortcuts

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