mock_oswrapper

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFile

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

Mock of File interface

func NewMockFile

func NewMockFile(ctrl *gomock.Controller) *MockFile

func (*MockFile) Chmod

func (_m *MockFile) Chmod(_param0 os.FileMode) error

func (*MockFile) Close

func (_m *MockFile) Close() error

func (*MockFile) EXPECT

func (_m *MockFile) EXPECT() *_MockFileRecorder

func (*MockFile) Name

func (_m *MockFile) Name() string

func (*MockFile) Sync

func (_m *MockFile) Sync() error

func (*MockFile) Write

func (_m *MockFile) Write(_param0 []byte) (int, error)

type MockOS

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

Mock of OS interface

func NewMockOS

func NewMockOS(ctrl *gomock.Controller) *MockOS

func (*MockOS) Create

func (_m *MockOS) Create(_param0 string) (oswrapper.File, error)

func (*MockOS) EXPECT

func (_m *MockOS) EXPECT() *_MockOSRecorder

func (*MockOS) IsNotExist

func (_m *MockOS) IsNotExist(_param0 error) bool

func (*MockOS) MkdirAll

func (_m *MockOS) MkdirAll(_param0 string, _param1 os.FileMode) error

func (*MockOS) OpenFile

func (_m *MockOS) OpenFile(_param0 string, _param1 int, _param2 os.FileMode) (oswrapper.File, error)

func (*MockOS) RemoveAll

func (_m *MockOS) RemoveAll(_param0 string) error

func (*MockOS) Rename

func (_m *MockOS) Rename(_param0 string, _param1 string) error

Jump to

Keyboard shortcuts

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