Documentation ¶
Overview ¶
Package mock_os is a generated GoMock package.
Index ¶
- func NopReadWriteCloser(r io.ReadWriter) io.ReadWriteCloser
- type MockFileSystem
- func (m *MockFileSystem) Copy(arg0 io.Writer, arg1 io.Reader) (int64, error)
- func (m *MockFileSystem) Create(arg0 string) (io.ReadWriteCloser, error)
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) Exit(arg0 int)
- func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) Open(arg0 string) (io.ReadWriteCloser, error)
- func (m *MockFileSystem) ReadAll(arg0 io.Reader) ([]byte, error)
- func (m *MockFileSystem) Remove(arg0 string)
- func (m *MockFileSystem) Rename(arg0, arg1 string) error
- func (m *MockFileSystem) TeeReader(arg0 io.Reader, arg1 io.Writer) io.Reader
- func (m *MockFileSystem) TempFile(arg0, arg1 string) (*os.File, error)
- func (m *MockFileSystem) WriteFile(arg0 string, arg1 []byte, arg2 os.FileMode) error
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) Copy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Exit(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) ReadAll(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) TeeReader(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) TempFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) WriteFile(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NopReadWriteCloser ¶
func NopReadWriteCloser(r io.ReadWriter) io.ReadWriteCloser
Types ¶
type MockFileSystem ¶
type MockFileSystem struct {
// contains filtered or unexported fields
}
MockFileSystem is a mock of FileSystem interface
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
NewMockFileSystem creates a new mock instance
func (*MockFileSystem) Create ¶
func (m *MockFileSystem) Create(arg0 string) (io.ReadWriteCloser, error)
Create mocks base method
func (*MockFileSystem) EXPECT ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileSystem) MkdirAll ¶
func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
MkdirAll mocks base method
func (*MockFileSystem) Open ¶
func (m *MockFileSystem) Open(arg0 string) (io.ReadWriteCloser, error)
Open mocks base method
func (*MockFileSystem) ReadAll ¶
func (m *MockFileSystem) ReadAll(arg0 io.Reader) ([]byte, error)
ReadAll mocks base method
func (*MockFileSystem) Remove ¶
func (m *MockFileSystem) Remove(arg0 string)
Remove mocks base method
func (*MockFileSystem) Rename ¶
func (m *MockFileSystem) Rename(arg0, arg1 string) error
Rename mocks base method
type MockFileSystemMockRecorder ¶ added in v1.17.3
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem
func (*MockFileSystemMockRecorder) Copy ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Copy(arg0, arg1 interface{}) *gomock.Call
Copy indicates an expected call of Copy
func (*MockFileSystemMockRecorder) Create ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockFileSystemMockRecorder) Exit ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Exit(arg0 interface{}) *gomock.Call
Exit indicates an expected call of Exit
func (*MockFileSystemMockRecorder) MkdirAll ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
MkdirAll indicates an expected call of MkdirAll
func (*MockFileSystemMockRecorder) Open ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open
func (*MockFileSystemMockRecorder) ReadAll ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) ReadAll(arg0 interface{}) *gomock.Call
ReadAll indicates an expected call of ReadAll
func (*MockFileSystemMockRecorder) Remove ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockFileSystemMockRecorder) Rename ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
Rename indicates an expected call of Rename
func (*MockFileSystemMockRecorder) TeeReader ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) TeeReader(arg0, arg1 interface{}) *gomock.Call
TeeReader indicates an expected call of TeeReader
func (*MockFileSystemMockRecorder) TempFile ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) TempFile(arg0, arg1 interface{}) *gomock.Call
TempFile indicates an expected call of TempFile
func (*MockFileSystemMockRecorder) WriteFile ¶ added in v1.17.3
func (mr *MockFileSystemMockRecorder) WriteFile(arg0, arg1, arg2 interface{}) *gomock.Call
WriteFile indicates an expected call of WriteFile