mock_git

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_git is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mockfs

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

Mockfs is a mock of fs interface.

func NewMockfs

func NewMockfs(ctrl *gomock.Controller) *Mockfs

NewMockfs creates a new mock instance.

func (*Mockfs) EXPECT

func (m *Mockfs) EXPECT() *MockfsMockRecorder

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

func (*Mockfs) MkdirAll

func (m *Mockfs) MkdirAll(path string, perm os.FileMode) error

MkdirAll mocks base method.

func (*Mockfs) MkdirTemp

func (m *Mockfs) MkdirTemp(dir, prefix string) (string, error)

MkdirTemp mocks base method.

func (*Mockfs) Open

func (m *Mockfs) Open(name string) (*os.File, error)

Open mocks base method.

func (*Mockfs) OpenFile

func (m *Mockfs) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

OpenFile mocks base method.

func (*Mockfs) Remove

func (m *Mockfs) Remove(name string) error

Remove mocks base method.

func (*Mockfs) RemoveAll

func (m *Mockfs) RemoveAll(path string) error

RemoveAll mocks base method.

func (*Mockfs) Stat

func (m *Mockfs) Stat(name string) (os.FileInfo, error)

Stat mocks base method.

type MockfsMockRecorder

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

MockfsMockRecorder is the mock recorder for Mockfs.

func (*MockfsMockRecorder) MkdirAll

func (mr *MockfsMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll.

func (*MockfsMockRecorder) MkdirTemp

func (mr *MockfsMockRecorder) MkdirTemp(dir, prefix interface{}) *gomock.Call

MkdirTemp indicates an expected call of MkdirTemp.

func (*MockfsMockRecorder) Open

func (mr *MockfsMockRecorder) Open(name interface{}) *gomock.Call

Open indicates an expected call of Open.

func (*MockfsMockRecorder) OpenFile

func (mr *MockfsMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call

OpenFile indicates an expected call of OpenFile.

func (*MockfsMockRecorder) Remove

func (mr *MockfsMockRecorder) Remove(name interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockfsMockRecorder) RemoveAll

func (mr *MockfsMockRecorder) RemoveAll(path interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll.

func (*MockfsMockRecorder) Stat

func (mr *MockfsMockRecorder) Stat(name interface{}) *gomock.Call

Stat indicates an expected call of Stat.

Jump to

Keyboard shortcuts

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