Documentation ¶
Index ¶
- type StorageHandler
- func (_m *StorageHandler) Add(_a0 string, _a1 []byte) error
- func (_m *StorageHandler) EXPECT() *StorageHandler_Expecter
- func (_m *StorageHandler) GetCurrent(_a0 string) ([]byte, error)
- func (_m *StorageHandler) Initialize() error
- func (_m *StorageHandler) IsClean() (bool, error)
- func (_m *StorageHandler) Store(msg string) error
- type StorageHandler_Add_Call
- type StorageHandler_Expecter
- func (_e *StorageHandler_Expecter) Add(_a0 interface{}, _a1 interface{}) *StorageHandler_Add_Call
- func (_e *StorageHandler_Expecter) GetCurrent(_a0 interface{}) *StorageHandler_GetCurrent_Call
- func (_e *StorageHandler_Expecter) Initialize() *StorageHandler_Initialize_Call
- func (_e *StorageHandler_Expecter) IsClean() *StorageHandler_IsClean_Call
- func (_e *StorageHandler_Expecter) Store(msg interface{}) *StorageHandler_Store_Call
- type StorageHandler_GetCurrent_Call
- func (_c *StorageHandler_GetCurrent_Call) Return(_a0 []byte, _a1 error) *StorageHandler_GetCurrent_Call
- func (_c *StorageHandler_GetCurrent_Call) Run(run func(_a0 string)) *StorageHandler_GetCurrent_Call
- func (_c *StorageHandler_GetCurrent_Call) RunAndReturn(run func(string) ([]byte, error)) *StorageHandler_GetCurrent_Call
- type StorageHandler_Initialize_Call
- type StorageHandler_IsClean_Call
- type StorageHandler_Store_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageHandler ¶
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 (_m *StorageHandler) EXPECT() *StorageHandler_Expecter
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
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 (_c *StorageHandler_Add_Call) Return(_a0 error) *StorageHandler_Add_Call
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
func (_e *StorageHandler_Expecter) Initialize() *StorageHandler_Initialize_Call
Initialize is a helper method to define mock.On call
func (*StorageHandler_Expecter) IsClean ¶ added in v0.7.1
func (_e *StorageHandler_Expecter) IsClean() *StorageHandler_IsClean_Call
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
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 (_c *StorageHandler_GetCurrent_Call) Return(_a0 []byte, _a1 error) *StorageHandler_GetCurrent_Call
func (*StorageHandler_GetCurrent_Call) Run ¶ added in v0.7.1
func (_c *StorageHandler_GetCurrent_Call) Run(run func(_a0 string)) *StorageHandler_GetCurrent_Call
func (*StorageHandler_GetCurrent_Call) RunAndReturn ¶ added in v0.7.1
func (_c *StorageHandler_GetCurrent_Call) RunAndReturn(run func(string) ([]byte, error)) *StorageHandler_GetCurrent_Call
type StorageHandler_Initialize_Call ¶ added in v0.7.1
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 (_c *StorageHandler_Initialize_Call) Return(_a0 error) *StorageHandler_Initialize_Call
func (*StorageHandler_Initialize_Call) Run ¶ added in v0.7.1
func (_c *StorageHandler_Initialize_Call) Run(run func()) *StorageHandler_Initialize_Call
func (*StorageHandler_Initialize_Call) RunAndReturn ¶ added in v0.7.1
func (_c *StorageHandler_Initialize_Call) RunAndReturn(run func() error) *StorageHandler_Initialize_Call
type StorageHandler_IsClean_Call ¶ added in v0.7.1
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 (_c *StorageHandler_IsClean_Call) Return(_a0 bool, _a1 error) *StorageHandler_IsClean_Call
func (*StorageHandler_IsClean_Call) Run ¶ added in v0.7.1
func (_c *StorageHandler_IsClean_Call) Run(run func()) *StorageHandler_IsClean_Call
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
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 (_c *StorageHandler_Store_Call) Return(_a0 error) *StorageHandler_Store_Call
func (*StorageHandler_Store_Call) Run ¶ added in v0.7.1
func (_c *StorageHandler_Store_Call) Run(run func(msg string)) *StorageHandler_Store_Call
func (*StorageHandler_Store_Call) RunAndReturn ¶ added in v0.7.1
func (_c *StorageHandler_Store_Call) RunAndReturn(run func(string) error) *StorageHandler_Store_Call