download

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	mock.Mock
}

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) EXPECT

func (_m *MockStorage) EXPECT() *MockStorage_Expecter

func (*MockStorage) Save

func (_m *MockStorage) Save(path string, fname string, r io.Reader) error

Save provides a mock function with given fields: path, fname, r

type MockStorage_Expecter

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

func (*MockStorage_Expecter) Save

func (_e *MockStorage_Expecter) Save(path interface{}, fname interface{}, r interface{}) *MockStorage_Save_Call

Save is a helper method to define mock.On call

  • path string
  • fname string
  • r io.Reader

type MockStorage_Save_Call

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

func (_c *MockStorage_Save_Call) Run(run func(path string, fname string, r io.Reader)) *MockStorage_Save_Call

func (*MockStorage_Save_Call) RunAndReturn

func (_c *MockStorage_Save_Call) RunAndReturn(run func(string, string, io.Reader) error) *MockStorage_Save_Call

Jump to

Keyboard shortcuts

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