mock_oswrapper

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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