Documentation ¶
Index ¶
- type MockFilesystem
- type MockFilesystem_Expecter
- func (_e *MockFilesystem_Expecter) ReadFile(name interface{}) *MockFilesystem_ReadFile_Call
- func (_e *MockFilesystem_Expecter) Stat(name interface{}) *MockFilesystem_Stat_Call
- func (_e *MockFilesystem_Expecter) WriteFile(name interface{}, data interface{}, perm interface{}) *MockFilesystem_WriteFile_Call
- type MockFilesystem_ReadFile_Call
- func (_c *MockFilesystem_ReadFile_Call) Return(_a0 []byte, _a1 error) *MockFilesystem_ReadFile_Call
- func (_c *MockFilesystem_ReadFile_Call) Run(run func(name string)) *MockFilesystem_ReadFile_Call
- func (_c *MockFilesystem_ReadFile_Call) RunAndReturn(run func(string) ([]byte, error)) *MockFilesystem_ReadFile_Call
- type MockFilesystem_Stat_Call
- type MockFilesystem_WriteFile_Call
- func (_c *MockFilesystem_WriteFile_Call) Return(_a0 error) *MockFilesystem_WriteFile_Call
- func (_c *MockFilesystem_WriteFile_Call) Run(run func(name string, data []byte, perm fs.FileMode)) *MockFilesystem_WriteFile_Call
- func (_c *MockFilesystem_WriteFile_Call) RunAndReturn(run func(string, []byte, fs.FileMode) error) *MockFilesystem_WriteFile_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFilesystem ¶
MockFilesystem is an autogenerated mock type for the Filesystem type
func NewMockFilesystem ¶
func NewMockFilesystem(t interface { mock.TestingT Cleanup(func()) }) *MockFilesystem
NewMockFilesystem creates a new instance of MockFilesystem. 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 (*MockFilesystem) EXPECT ¶
func (_m *MockFilesystem) EXPECT() *MockFilesystem_Expecter
func (*MockFilesystem) ReadFile ¶
func (_m *MockFilesystem) ReadFile(name string) ([]byte, error)
ReadFile provides a mock function with given fields: name
type MockFilesystem_Expecter ¶
type MockFilesystem_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFilesystem_Expecter) ReadFile ¶
func (_e *MockFilesystem_Expecter) ReadFile(name interface{}) *MockFilesystem_ReadFile_Call
ReadFile is a helper method to define mock.On call
- name string
func (*MockFilesystem_Expecter) Stat ¶
func (_e *MockFilesystem_Expecter) Stat(name interface{}) *MockFilesystem_Stat_Call
Stat is a helper method to define mock.On call
- name string
func (*MockFilesystem_Expecter) WriteFile ¶
func (_e *MockFilesystem_Expecter) WriteFile(name interface{}, data interface{}, perm interface{}) *MockFilesystem_WriteFile_Call
WriteFile is a helper method to define mock.On call
- name string
- data []byte
- perm fs.FileMode
type MockFilesystem_ReadFile_Call ¶
MockFilesystem_ReadFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFile'
func (*MockFilesystem_ReadFile_Call) Return ¶
func (_c *MockFilesystem_ReadFile_Call) Return(_a0 []byte, _a1 error) *MockFilesystem_ReadFile_Call
func (*MockFilesystem_ReadFile_Call) Run ¶
func (_c *MockFilesystem_ReadFile_Call) Run(run func(name string)) *MockFilesystem_ReadFile_Call
func (*MockFilesystem_ReadFile_Call) RunAndReturn ¶
func (_c *MockFilesystem_ReadFile_Call) RunAndReturn(run func(string) ([]byte, error)) *MockFilesystem_ReadFile_Call
type MockFilesystem_Stat_Call ¶
MockFilesystem_Stat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stat'
func (*MockFilesystem_Stat_Call) Return ¶
func (_c *MockFilesystem_Stat_Call) Return(_a0 fs.FileInfo, _a1 error) *MockFilesystem_Stat_Call
func (*MockFilesystem_Stat_Call) Run ¶
func (_c *MockFilesystem_Stat_Call) Run(run func(name string)) *MockFilesystem_Stat_Call
func (*MockFilesystem_Stat_Call) RunAndReturn ¶
func (_c *MockFilesystem_Stat_Call) RunAndReturn(run func(string) (fs.FileInfo, error)) *MockFilesystem_Stat_Call
type MockFilesystem_WriteFile_Call ¶
MockFilesystem_WriteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteFile'
func (*MockFilesystem_WriteFile_Call) Return ¶
func (_c *MockFilesystem_WriteFile_Call) Return(_a0 error) *MockFilesystem_WriteFile_Call
func (*MockFilesystem_WriteFile_Call) Run ¶
func (_c *MockFilesystem_WriteFile_Call) Run(run func(name string, data []byte, perm fs.FileMode)) *MockFilesystem_WriteFile_Call
func (*MockFilesystem_WriteFile_Call) RunAndReturn ¶
func (_c *MockFilesystem_WriteFile_Call) RunAndReturn(run func(string, []byte, fs.FileMode) error) *MockFilesystem_WriteFile_Call