mocks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageHandler

type StorageHandler struct {
	mock.Mock
}

StorageHandler is an autogenerated mock type for the StorageHandler type

func NewStorageHandler

func NewStorageHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageHandler

NewStorageHandler creates a new instance of StorageHandler. 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 (*StorageHandler) Add

func (_m *StorageHandler) Add(_a0 string, _a1 []byte) error

Add provides a mock function with given fields: _a0, _a1

func (*StorageHandler) EXPECT added in v0.7.1

func (*StorageHandler) GetCurrent

func (_m *StorageHandler) GetCurrent(_a0 string) ([]byte, error)

GetCurrent provides a mock function with given fields: _a0

func (*StorageHandler) Initialize

func (_m *StorageHandler) Initialize() error

Initialize provides a mock function with given fields:

func (*StorageHandler) IsClean

func (_m *StorageHandler) IsClean() (bool, error)

IsClean provides a mock function with given fields:

func (*StorageHandler) Store

func (_m *StorageHandler) Store(msg string) error

Store provides a mock function with given fields: msg

type StorageHandler_Add_Call added in v0.7.1

type StorageHandler_Add_Call struct {
	*mock.Call
}

StorageHandler_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*StorageHandler_Add_Call) Return added in v0.7.1

func (*StorageHandler_Add_Call) Run added in v0.7.1

func (_c *StorageHandler_Add_Call) Run(run func(_a0 string, _a1 []byte)) *StorageHandler_Add_Call

func (*StorageHandler_Add_Call) RunAndReturn added in v0.7.1

func (_c *StorageHandler_Add_Call) RunAndReturn(run func(string, []byte) error) *StorageHandler_Add_Call

type StorageHandler_Expecter added in v0.7.1

type StorageHandler_Expecter struct {
	// contains filtered or unexported fields
}

func (*StorageHandler_Expecter) Add added in v0.7.1

func (_e *StorageHandler_Expecter) Add(_a0 interface{}, _a1 interface{}) *StorageHandler_Add_Call

Add is a helper method to define mock.On call

  • _a0 string
  • _a1 []byte

func (*StorageHandler_Expecter) GetCurrent added in v0.7.1

func (_e *StorageHandler_Expecter) GetCurrent(_a0 interface{}) *StorageHandler_GetCurrent_Call

GetCurrent is a helper method to define mock.On call

  • _a0 string

func (*StorageHandler_Expecter) Initialize added in v0.7.1

Initialize is a helper method to define mock.On call

func (*StorageHandler_Expecter) IsClean added in v0.7.1

IsClean is a helper method to define mock.On call

func (*StorageHandler_Expecter) Store added in v0.7.1

func (_e *StorageHandler_Expecter) Store(msg interface{}) *StorageHandler_Store_Call

Store is a helper method to define mock.On call

  • msg string

type StorageHandler_GetCurrent_Call added in v0.7.1

type StorageHandler_GetCurrent_Call struct {
	*mock.Call
}

StorageHandler_GetCurrent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrent'

func (*StorageHandler_GetCurrent_Call) Return added in v0.7.1

func (*StorageHandler_GetCurrent_Call) Run added in v0.7.1

func (*StorageHandler_GetCurrent_Call) RunAndReturn added in v0.7.1

type StorageHandler_Initialize_Call added in v0.7.1

type StorageHandler_Initialize_Call struct {
	*mock.Call
}

StorageHandler_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'

func (*StorageHandler_Initialize_Call) Return added in v0.7.1

func (*StorageHandler_Initialize_Call) Run added in v0.7.1

func (*StorageHandler_Initialize_Call) RunAndReturn added in v0.7.1

type StorageHandler_IsClean_Call added in v0.7.1

type StorageHandler_IsClean_Call struct {
	*mock.Call
}

StorageHandler_IsClean_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsClean'

func (*StorageHandler_IsClean_Call) Return added in v0.7.1

func (*StorageHandler_IsClean_Call) Run added in v0.7.1

func (*StorageHandler_IsClean_Call) RunAndReturn added in v0.7.1

func (_c *StorageHandler_IsClean_Call) RunAndReturn(run func() (bool, error)) *StorageHandler_IsClean_Call

type StorageHandler_Store_Call added in v0.7.1

type StorageHandler_Store_Call struct {
	*mock.Call
}

StorageHandler_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*StorageHandler_Store_Call) Return added in v0.7.1

func (*StorageHandler_Store_Call) Run added in v0.7.1

func (*StorageHandler_Store_Call) RunAndReturn added in v0.7.1

func (_c *StorageHandler_Store_Call) RunAndReturn(run func(string) error) *StorageHandler_Store_Call

Jump to

Keyboard shortcuts

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