Documentation
¶
Index ¶
- type MockStorage
- type MockStorage_Delete_Call
- type MockStorage_Expecter
- type MockStorage_GetURL_Call
- type MockStorage_Save_Call
- func (_c *MockStorage_Save_Call) Return(s string, err error) *MockStorage_Save_Call
- func (_c *MockStorage_Save_Call) Run(run func(filename string, reader io.Reader)) *MockStorage_Save_Call
- func (_c *MockStorage_Save_Call) RunAndReturn(run func(filename string, reader io.Reader) (string, error)) *MockStorage_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
MockStorage is an autogenerated mock type for the Storage type
func NewMockStorage ¶
func NewMockStorage(t interface {
mock.TestingT
Cleanup(func())
}) *MockStorage
NewMockStorage creates a new instance of MockStorage. 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 (*MockStorage) Delete ¶
func (_mock *MockStorage) Delete(filePath string) error
Delete provides a mock function for the type MockStorage
func (*MockStorage) EXPECT ¶
func (_m *MockStorage) EXPECT() *MockStorage_Expecter
func (*MockStorage) GetURL ¶
func (_mock *MockStorage) GetURL(filePath string) string
GetURL provides a mock function for the type MockStorage
type MockStorage_Delete_Call ¶
MockStorage_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockStorage_Delete_Call) Return ¶
func (_c *MockStorage_Delete_Call) Return(err error) *MockStorage_Delete_Call
func (*MockStorage_Delete_Call) Run ¶
func (_c *MockStorage_Delete_Call) Run(run func(filePath string)) *MockStorage_Delete_Call
func (*MockStorage_Delete_Call) RunAndReturn ¶
func (_c *MockStorage_Delete_Call) RunAndReturn(run func(filePath string) error) *MockStorage_Delete_Call
type MockStorage_Expecter ¶
type MockStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorage_Expecter) Delete ¶
func (_e *MockStorage_Expecter) Delete(filePath any) *MockStorage_Delete_Call
Delete is a helper method to define mock.On call
- filePath string
func (*MockStorage_Expecter) GetURL ¶
func (_e *MockStorage_Expecter) GetURL(filePath any) *MockStorage_GetURL_Call
GetURL is a helper method to define mock.On call
- filePath string
func (*MockStorage_Expecter) Save ¶
func (_e *MockStorage_Expecter) Save(filename any, reader any) *MockStorage_Save_Call
Save is a helper method to define mock.On call
- filename string
- reader io.Reader
type MockStorage_GetURL_Call ¶
MockStorage_GetURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetURL'
func (*MockStorage_GetURL_Call) Return ¶
func (_c *MockStorage_GetURL_Call) Return(s string) *MockStorage_GetURL_Call
func (*MockStorage_GetURL_Call) Run ¶
func (_c *MockStorage_GetURL_Call) Run(run func(filePath string)) *MockStorage_GetURL_Call
func (*MockStorage_GetURL_Call) RunAndReturn ¶
func (_c *MockStorage_GetURL_Call) RunAndReturn(run func(filePath string) string) *MockStorage_GetURL_Call
type MockStorage_Save_Call ¶
MockStorage_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*MockStorage_Save_Call) Return ¶
func (_c *MockStorage_Save_Call) Return(s string, err error) *MockStorage_Save_Call
func (*MockStorage_Save_Call) Run ¶
func (_c *MockStorage_Save_Call) Run(run func(filename string, reader io.Reader)) *MockStorage_Save_Call
func (*MockStorage_Save_Call) RunAndReturn ¶
func (_c *MockStorage_Save_Call) RunAndReturn(run func(filename string, reader io.Reader) (string, error)) *MockStorage_Save_Call