filefakes

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClearFoldersOSFileManager

type FakeClearFoldersOSFileManager struct {
	ReadDirStub func(string) ([]os.DirEntry, error)

	RemoveStub func(string) error
	// contains filtered or unexported fields
}

func (*FakeClearFoldersOSFileManager) Invocations

func (fake *FakeClearFoldersOSFileManager) Invocations() map[string][][]interface{}

func (*FakeClearFoldersOSFileManager) ReadDir

func (fake *FakeClearFoldersOSFileManager) ReadDir(arg1 string) ([]os.DirEntry, error)

func (*FakeClearFoldersOSFileManager) ReadDirArgsForCall

func (fake *FakeClearFoldersOSFileManager) ReadDirArgsForCall(i int) string

func (*FakeClearFoldersOSFileManager) ReadDirCallCount

func (fake *FakeClearFoldersOSFileManager) ReadDirCallCount() int

func (*FakeClearFoldersOSFileManager) ReadDirCalls

func (fake *FakeClearFoldersOSFileManager) ReadDirCalls(stub func(string) ([]os.DirEntry, error))

func (*FakeClearFoldersOSFileManager) ReadDirReturns

func (fake *FakeClearFoldersOSFileManager) ReadDirReturns(result1 []os.DirEntry, result2 error)

func (*FakeClearFoldersOSFileManager) ReadDirReturnsOnCall

func (fake *FakeClearFoldersOSFileManager) ReadDirReturnsOnCall(i int, result1 []os.DirEntry, result2 error)

func (*FakeClearFoldersOSFileManager) Remove

func (fake *FakeClearFoldersOSFileManager) Remove(arg1 string) error

func (*FakeClearFoldersOSFileManager) RemoveArgsForCall

func (fake *FakeClearFoldersOSFileManager) RemoveArgsForCall(i int) string

func (*FakeClearFoldersOSFileManager) RemoveCallCount

func (fake *FakeClearFoldersOSFileManager) RemoveCallCount() int

func (*FakeClearFoldersOSFileManager) RemoveCalls

func (fake *FakeClearFoldersOSFileManager) RemoveCalls(stub func(string) error)

func (*FakeClearFoldersOSFileManager) RemoveReturns

func (fake *FakeClearFoldersOSFileManager) RemoveReturns(result1 error)

func (*FakeClearFoldersOSFileManager) RemoveReturnsOnCall

func (fake *FakeClearFoldersOSFileManager) RemoveReturnsOnCall(i int, result1 error)

type FakeDirEntry

type FakeDirEntry struct {
	InfoStub func() (fs.FileInfo, error)

	IsDirStub func() bool

	NameStub func() string

	TypeStub func() fs.FileMode
	// contains filtered or unexported fields
}

func (*FakeDirEntry) Info

func (fake *FakeDirEntry) Info() (fs.FileInfo, error)

func (*FakeDirEntry) InfoCallCount

func (fake *FakeDirEntry) InfoCallCount() int

func (*FakeDirEntry) InfoCalls

func (fake *FakeDirEntry) InfoCalls(stub func() (fs.FileInfo, error))

func (*FakeDirEntry) InfoReturns

func (fake *FakeDirEntry) InfoReturns(result1 fs.FileInfo, result2 error)

func (*FakeDirEntry) InfoReturnsOnCall

func (fake *FakeDirEntry) InfoReturnsOnCall(i int, result1 fs.FileInfo, result2 error)

func (*FakeDirEntry) Invocations

func (fake *FakeDirEntry) Invocations() map[string][][]interface{}

func (*FakeDirEntry) IsDir

func (fake *FakeDirEntry) IsDir() bool

func (*FakeDirEntry) IsDirCallCount

func (fake *FakeDirEntry) IsDirCallCount() int

func (*FakeDirEntry) IsDirCalls

func (fake *FakeDirEntry) IsDirCalls(stub func() bool)

func (*FakeDirEntry) IsDirReturns

func (fake *FakeDirEntry) IsDirReturns(result1 bool)

func (*FakeDirEntry) IsDirReturnsOnCall

func (fake *FakeDirEntry) IsDirReturnsOnCall(i int, result1 bool)

func (*FakeDirEntry) Name

func (fake *FakeDirEntry) Name() string

func (*FakeDirEntry) NameCallCount

func (fake *FakeDirEntry) NameCallCount() int

func (*FakeDirEntry) NameCalls

func (fake *FakeDirEntry) NameCalls(stub func() string)

func (*FakeDirEntry) NameReturns

func (fake *FakeDirEntry) NameReturns(result1 string)

func (*FakeDirEntry) NameReturnsOnCall

func (fake *FakeDirEntry) NameReturnsOnCall(i int, result1 string)

func (*FakeDirEntry) Type

func (fake *FakeDirEntry) Type() fs.FileMode

func (*FakeDirEntry) TypeCallCount

func (fake *FakeDirEntry) TypeCallCount() int

func (*FakeDirEntry) TypeCalls

func (fake *FakeDirEntry) TypeCalls(stub func() fs.FileMode)

func (*FakeDirEntry) TypeReturns

func (fake *FakeDirEntry) TypeReturns(result1 fs.FileMode)

func (*FakeDirEntry) TypeReturnsOnCall

func (fake *FakeDirEntry) TypeReturnsOnCall(i int, result1 fs.FileMode)

type FakeManager

type FakeManager struct {
	ReplaceFilesStub func([]file.File) error
	// contains filtered or unexported fields
}

func (*FakeManager) Invocations

func (fake *FakeManager) Invocations() map[string][][]interface{}

func (*FakeManager) ReplaceFiles

func (fake *FakeManager) ReplaceFiles(arg1 []file.File) error

func (*FakeManager) ReplaceFilesArgsForCall

func (fake *FakeManager) ReplaceFilesArgsForCall(i int) []file.File

func (*FakeManager) ReplaceFilesCallCount

func (fake *FakeManager) ReplaceFilesCallCount() int

func (*FakeManager) ReplaceFilesCalls

func (fake *FakeManager) ReplaceFilesCalls(stub func([]file.File) error)

func (*FakeManager) ReplaceFilesReturns

func (fake *FakeManager) ReplaceFilesReturns(result1 error)

func (*FakeManager) ReplaceFilesReturnsOnCall

func (fake *FakeManager) ReplaceFilesReturnsOnCall(i int, result1 error)

type FakeOSFileManager

type FakeOSFileManager struct {
	ChmodStub func(*os.File, os.FileMode) error

	CreateStub func(string) (*os.File, error)

	ReadDirStub func(string) ([]fs.DirEntry, error)

	RemoveStub func(string) error

	WriteStub func(*os.File, []byte) error
	// contains filtered or unexported fields
}

func (*FakeOSFileManager) Chmod

func (fake *FakeOSFileManager) Chmod(arg1 *os.File, arg2 os.FileMode) error

func (*FakeOSFileManager) ChmodArgsForCall

func (fake *FakeOSFileManager) ChmodArgsForCall(i int) (*os.File, os.FileMode)

func (*FakeOSFileManager) ChmodCallCount

func (fake *FakeOSFileManager) ChmodCallCount() int

func (*FakeOSFileManager) ChmodCalls

func (fake *FakeOSFileManager) ChmodCalls(stub func(*os.File, os.FileMode) error)

func (*FakeOSFileManager) ChmodReturns

func (fake *FakeOSFileManager) ChmodReturns(result1 error)

func (*FakeOSFileManager) ChmodReturnsOnCall

func (fake *FakeOSFileManager) ChmodReturnsOnCall(i int, result1 error)

func (*FakeOSFileManager) Create

func (fake *FakeOSFileManager) Create(arg1 string) (*os.File, error)

func (*FakeOSFileManager) CreateArgsForCall

func (fake *FakeOSFileManager) CreateArgsForCall(i int) string

func (*FakeOSFileManager) CreateCallCount

func (fake *FakeOSFileManager) CreateCallCount() int

func (*FakeOSFileManager) CreateCalls

func (fake *FakeOSFileManager) CreateCalls(stub func(string) (*os.File, error))

func (*FakeOSFileManager) CreateReturns

func (fake *FakeOSFileManager) CreateReturns(result1 *os.File, result2 error)

func (*FakeOSFileManager) CreateReturnsOnCall

func (fake *FakeOSFileManager) CreateReturnsOnCall(i int, result1 *os.File, result2 error)

func (*FakeOSFileManager) Invocations

func (fake *FakeOSFileManager) Invocations() map[string][][]interface{}

func (*FakeOSFileManager) ReadDir

func (fake *FakeOSFileManager) ReadDir(arg1 string) ([]fs.DirEntry, error)

func (*FakeOSFileManager) ReadDirArgsForCall

func (fake *FakeOSFileManager) ReadDirArgsForCall(i int) string

func (*FakeOSFileManager) ReadDirCallCount

func (fake *FakeOSFileManager) ReadDirCallCount() int

func (*FakeOSFileManager) ReadDirCalls

func (fake *FakeOSFileManager) ReadDirCalls(stub func(string) ([]fs.DirEntry, error))

func (*FakeOSFileManager) ReadDirReturns

func (fake *FakeOSFileManager) ReadDirReturns(result1 []fs.DirEntry, result2 error)

func (*FakeOSFileManager) ReadDirReturnsOnCall

func (fake *FakeOSFileManager) ReadDirReturnsOnCall(i int, result1 []fs.DirEntry, result2 error)

func (*FakeOSFileManager) Remove

func (fake *FakeOSFileManager) Remove(arg1 string) error

func (*FakeOSFileManager) RemoveArgsForCall

func (fake *FakeOSFileManager) RemoveArgsForCall(i int) string

func (*FakeOSFileManager) RemoveCallCount

func (fake *FakeOSFileManager) RemoveCallCount() int

func (*FakeOSFileManager) RemoveCalls

func (fake *FakeOSFileManager) RemoveCalls(stub func(string) error)

func (*FakeOSFileManager) RemoveReturns

func (fake *FakeOSFileManager) RemoveReturns(result1 error)

func (*FakeOSFileManager) RemoveReturnsOnCall

func (fake *FakeOSFileManager) RemoveReturnsOnCall(i int, result1 error)

func (*FakeOSFileManager) Write

func (fake *FakeOSFileManager) Write(arg1 *os.File, arg2 []byte) error

func (*FakeOSFileManager) WriteArgsForCall

func (fake *FakeOSFileManager) WriteArgsForCall(i int) (*os.File, []byte)

func (*FakeOSFileManager) WriteCallCount

func (fake *FakeOSFileManager) WriteCallCount() int

func (*FakeOSFileManager) WriteCalls

func (fake *FakeOSFileManager) WriteCalls(stub func(*os.File, []byte) error)

func (*FakeOSFileManager) WriteReturns

func (fake *FakeOSFileManager) WriteReturns(result1 error)

func (*FakeOSFileManager) WriteReturnsOnCall

func (fake *FakeOSFileManager) WriteReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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