mock_os

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_os is a generated GoMock package.

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
}

MockFileSystem is a mock of FileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

NewMockFileSystem creates a new mock instance

func (*MockFileSystem) Copy

func (m *MockFileSystem) Copy(arg0 io.Writer, arg1 io.Reader) (int64, error)

Copy mocks base method

func (*MockFileSystem) Create

func (m *MockFileSystem) Create(arg0 string) (io.ReadWriteCloser, error)

Create mocks base method

func (*MockFileSystem) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFileSystem) Exit

func (m *MockFileSystem) Exit(arg0 int)

Exit mocks base method

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

func (*MockFileSystem) TeeReader

func (m *MockFileSystem) TeeReader(arg0 io.Reader, arg1 io.Writer) io.Reader

TeeReader mocks base method

func (*MockFileSystem) TempFile

func (m *MockFileSystem) TempFile(arg0, arg1 string) (*os.File, error)

TempFile mocks base method

func (*MockFileSystem) WriteFile

func (m *MockFileSystem) WriteFile(arg0 string, arg1 []byte, arg2 os.FileMode) error

WriteFile 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

Jump to

Keyboard shortcuts

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