mock_os

package
v1.18.0-coveo.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more 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

type MockFileSystemMockRecorder struct {
	// contains filtered or unexported fields
}

MockFileSystemMockRecorder is the mock recorder for MockFileSystem

func (*MockFileSystemMockRecorder) Copy

func (mr *MockFileSystemMockRecorder) Copy(arg0, arg1 interface{}) *gomock.Call

Copy indicates an expected call of Copy

func (*MockFileSystemMockRecorder) Create

func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockFileSystemMockRecorder) Exit

func (mr *MockFileSystemMockRecorder) Exit(arg0 interface{}) *gomock.Call

Exit indicates an expected call of Exit

func (*MockFileSystemMockRecorder) MkdirAll

func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

func (*MockFileSystemMockRecorder) Open

func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockFileSystemMockRecorder) ReadAll

func (mr *MockFileSystemMockRecorder) ReadAll(arg0 interface{}) *gomock.Call

ReadAll indicates an expected call of ReadAll

func (*MockFileSystemMockRecorder) Remove

func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockFileSystemMockRecorder) Rename

func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call

Rename indicates an expected call of Rename

func (*MockFileSystemMockRecorder) TeeReader

func (mr *MockFileSystemMockRecorder) TeeReader(arg0, arg1 interface{}) *gomock.Call

TeeReader indicates an expected call of TeeReader

func (*MockFileSystemMockRecorder) TempFile

func (mr *MockFileSystemMockRecorder) TempFile(arg0, arg1 interface{}) *gomock.Call

TempFile indicates an expected call of TempFile

func (*MockFileSystemMockRecorder) WriteFile

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