Documentation ¶
Index ¶
- func NopReadWriteCloser(r io.ReadWriter) io.ReadWriteCloser
- type MockFileSystem
- func (_m *MockFileSystem) Copy(_param0 io.Writer, _param1 io.Reader) (int64, error)
- func (_m *MockFileSystem) Create(_param0 string) (io.ReadWriteCloser, error)
- func (_m *MockFileSystem) EXPECT() *_MockFileSystemRecorder
- func (_m *MockFileSystem) Exit(_param0 int)
- func (_m *MockFileSystem) MkdirAll(_param0 string, _param1 os.FileMode) error
- func (_m *MockFileSystem) Open(_param0 string) (io.ReadWriteCloser, error)
- func (_m *MockFileSystem) ReadAll(_param0 io.Reader) ([]byte, error)
- func (_m *MockFileSystem) Remove(_param0 string)
- func (_m *MockFileSystem) Rename(_param0 string, _param1 string) error
- func (_m *MockFileSystem) TeeReader(_param0 io.Reader, _param1 io.Writer) io.Reader
- func (_m *MockFileSystem) TempFile(_param0 string, _param1 string) (*os.File, error)
- func (_m *MockFileSystem) WriteFile(_param0 string, _param1 []byte, _param2 os.FileMode) error
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
}
Mock of FileSystem interface
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
func (*MockFileSystem) Create ¶
func (_m *MockFileSystem) Create(_param0 string) (io.ReadWriteCloser, error)
func (*MockFileSystem) EXPECT ¶
func (_m *MockFileSystem) EXPECT() *_MockFileSystemRecorder
func (*MockFileSystem) Exit ¶
func (_m *MockFileSystem) Exit(_param0 int)
func (*MockFileSystem) MkdirAll ¶
func (_m *MockFileSystem) MkdirAll(_param0 string, _param1 os.FileMode) error
func (*MockFileSystem) Open ¶
func (_m *MockFileSystem) Open(_param0 string) (io.ReadWriteCloser, error)
func (*MockFileSystem) ReadAll ¶
func (_m *MockFileSystem) ReadAll(_param0 io.Reader) ([]byte, error)
func (*MockFileSystem) Remove ¶
func (_m *MockFileSystem) Remove(_param0 string)
func (*MockFileSystem) Rename ¶
func (_m *MockFileSystem) Rename(_param0 string, _param1 string) error
Click to show internal directories.
Click to hide internal directories.