mock_os

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 3 Imported by: 0

Documentation

Index

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

func (_m *MockFileSystem) Copy(_param0 io.Writer, _param1 io.Reader) (int64, error)

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

func (*MockFileSystem) TeeReader

func (_m *MockFileSystem) TeeReader(_param0 io.Reader, _param1 io.Writer) io.Reader

func (*MockFileSystem) TempFile

func (_m *MockFileSystem) TempFile(_param0 string, _param1 string) (*os.File, error)

func (*MockFileSystem) WriteFile

func (_m *MockFileSystem) WriteFile(_param0 string, _param1 []byte, _param2 os.FileMode) error

Jump to

Keyboard shortcuts

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