fakes

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 7 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 FileInfo

type FileInfo struct {
	IsDirStub func() bool

	ModTimeStub func() time.Time

	ModeStub func() fs.FileMode

	NameStub func() string

	SizeStub func() int64

	SysStub func() interface{}
	// contains filtered or unexported fields
}

func (*FileInfo) Invocations

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

func (*FileInfo) IsDir

func (fake *FileInfo) IsDir() bool

func (*FileInfo) IsDirCallCount

func (fake *FileInfo) IsDirCallCount() int

func (*FileInfo) IsDirCalls

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

func (*FileInfo) IsDirReturns

func (fake *FileInfo) IsDirReturns(result1 bool)

func (*FileInfo) IsDirReturnsOnCall

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

func (*FileInfo) ModTime

func (fake *FileInfo) ModTime() time.Time

func (*FileInfo) ModTimeCallCount

func (fake *FileInfo) ModTimeCallCount() int

func (*FileInfo) ModTimeCalls

func (fake *FileInfo) ModTimeCalls(stub func() time.Time)

func (*FileInfo) ModTimeReturns

func (fake *FileInfo) ModTimeReturns(result1 time.Time)

func (*FileInfo) ModTimeReturnsOnCall

func (fake *FileInfo) ModTimeReturnsOnCall(i int, result1 time.Time)

func (*FileInfo) Mode

func (fake *FileInfo) Mode() fs.FileMode

func (*FileInfo) ModeCallCount

func (fake *FileInfo) ModeCallCount() int

func (*FileInfo) ModeCalls

func (fake *FileInfo) ModeCalls(stub func() fs.FileMode)

func (*FileInfo) ModeReturns

func (fake *FileInfo) ModeReturns(result1 fs.FileMode)

func (*FileInfo) ModeReturnsOnCall

func (fake *FileInfo) ModeReturnsOnCall(i int, result1 fs.FileMode)

func (*FileInfo) Name

func (fake *FileInfo) Name() string

func (*FileInfo) NameCallCount

func (fake *FileInfo) NameCallCount() int

func (*FileInfo) NameCalls

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

func (*FileInfo) NameReturns

func (fake *FileInfo) NameReturns(result1 string)

func (*FileInfo) NameReturnsOnCall

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

func (*FileInfo) Size

func (fake *FileInfo) Size() int64

func (*FileInfo) SizeCallCount

func (fake *FileInfo) SizeCallCount() int

func (*FileInfo) SizeCalls

func (fake *FileInfo) SizeCalls(stub func() int64)

func (*FileInfo) SizeReturns

func (fake *FileInfo) SizeReturns(result1 int64)

func (*FileInfo) SizeReturnsOnCall

func (fake *FileInfo) SizeReturnsOnCall(i int, result1 int64)

func (*FileInfo) Sys

func (fake *FileInfo) Sys() interface{}

func (*FileInfo) SysCallCount

func (fake *FileInfo) SysCallCount() int

func (*FileInfo) SysCalls

func (fake *FileInfo) SysCalls(stub func() interface{})

func (*FileInfo) SysReturns

func (fake *FileInfo) SysReturns(result1 interface{})

func (*FileInfo) SysReturnsOnCall

func (fake *FileInfo) SysReturnsOnCall(i int, result1 interface{})

type Filesystem

type Filesystem struct {
	CreateStub func(string) (io.WriteCloser, error)

	OpenStub func(string) (io.ReadCloser, error)

	RemoveStub func(string) error

	WalkStub func(string, filepath.WalkFunc) error
	// contains filtered or unexported fields
}

func (*Filesystem) Create

func (fake *Filesystem) Create(arg1 string) (io.WriteCloser, error)

func (*Filesystem) CreateArgsForCall

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

func (*Filesystem) CreateCallCount

func (fake *Filesystem) CreateCallCount() int

func (*Filesystem) CreateCalls

func (fake *Filesystem) CreateCalls(stub func(string) (io.WriteCloser, error))

func (*Filesystem) CreateReturns

func (fake *Filesystem) CreateReturns(result1 io.WriteCloser, result2 error)

func (*Filesystem) CreateReturnsOnCall

func (fake *Filesystem) CreateReturnsOnCall(i int, result1 io.WriteCloser, result2 error)

func (*Filesystem) Invocations

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

func (*Filesystem) Open

func (fake *Filesystem) Open(arg1 string) (io.ReadCloser, error)

func (*Filesystem) OpenArgsForCall

func (fake *Filesystem) OpenArgsForCall(i int) string

func (*Filesystem) OpenCallCount

func (fake *Filesystem) OpenCallCount() int

func (*Filesystem) OpenCalls

func (fake *Filesystem) OpenCalls(stub func(string) (io.ReadCloser, error))

func (*Filesystem) OpenReturns

func (fake *Filesystem) OpenReturns(result1 io.ReadCloser, result2 error)

func (*Filesystem) OpenReturnsOnCall

func (fake *Filesystem) OpenReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*Filesystem) Remove

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

func (*Filesystem) RemoveArgsForCall

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

func (*Filesystem) RemoveCallCount

func (fake *Filesystem) RemoveCallCount() int

func (*Filesystem) RemoveCalls

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

func (*Filesystem) RemoveReturns

func (fake *Filesystem) RemoveReturns(result1 error)

func (*Filesystem) RemoveReturnsOnCall

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

func (*Filesystem) Walk

func (fake *Filesystem) Walk(arg1 string, arg2 filepath.WalkFunc) error

func (*Filesystem) WalkArgsForCall

func (fake *Filesystem) WalkArgsForCall(i int) (string, filepath.WalkFunc)

func (*Filesystem) WalkCallCount

func (fake *Filesystem) WalkCallCount() int

func (*Filesystem) WalkCalls

func (fake *Filesystem) WalkCalls(stub func(string, filepath.WalkFunc) error)

func (*Filesystem) WalkReturns

func (fake *Filesystem) WalkReturns(result1 error)

func (*Filesystem) WalkReturnsOnCall

func (fake *Filesystem) WalkReturnsOnCall(i int, result1 error)

type Logger

type Logger struct {
	PrintfCall struct {
		Receives struct {
			LogLines []string
		}
	}

	PrintlnCall struct {
		Receives struct {
			LogLines []string
		}
	}
}

func (*Logger) Printf

func (l *Logger) Printf(format string, v ...interface{})

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

type ReadCloser

type ReadCloser struct {
	CloseStub func() error

	ReadStub func([]byte) (int, error)
	// contains filtered or unexported fields
}

func (*ReadCloser) Close

func (fake *ReadCloser) Close() error

func (*ReadCloser) CloseCallCount

func (fake *ReadCloser) CloseCallCount() int

func (*ReadCloser) CloseCalls

func (fake *ReadCloser) CloseCalls(stub func() error)

func (*ReadCloser) CloseReturns

func (fake *ReadCloser) CloseReturns(result1 error)

func (*ReadCloser) CloseReturnsOnCall

func (fake *ReadCloser) CloseReturnsOnCall(i int, result1 error)

func (*ReadCloser) Invocations

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

func (*ReadCloser) Read

func (fake *ReadCloser) Read(arg1 []byte) (int, error)

func (*ReadCloser) ReadArgsForCall

func (fake *ReadCloser) ReadArgsForCall(i int) []byte

func (*ReadCloser) ReadCallCount

func (fake *ReadCloser) ReadCallCount() int

func (*ReadCloser) ReadCalls

func (fake *ReadCloser) ReadCalls(stub func([]byte) (int, error))

func (*ReadCloser) ReadReturns

func (fake *ReadCloser) ReadReturns(result1 int, result2 error)

func (*ReadCloser) ReadReturnsOnCall

func (fake *ReadCloser) ReadReturnsOnCall(i int, result1 int, result2 error)

type Zipper

type Zipper struct {
	AddStub func(string, io.Reader) error

	AddWithModeStub func(string, io.Reader, fs.FileMode) error

	CloseStub func() error

	CreateFolderStub func(string) error

	SetWriterStub func(io.Writer)
	// contains filtered or unexported fields
}

func (*Zipper) Add

func (fake *Zipper) Add(arg1 string, arg2 io.Reader) error

func (*Zipper) AddArgsForCall

func (fake *Zipper) AddArgsForCall(i int) (string, io.Reader)

func (*Zipper) AddCallCount

func (fake *Zipper) AddCallCount() int

func (*Zipper) AddCalls

func (fake *Zipper) AddCalls(stub func(string, io.Reader) error)

func (*Zipper) AddReturns

func (fake *Zipper) AddReturns(result1 error)

func (*Zipper) AddReturnsOnCall

func (fake *Zipper) AddReturnsOnCall(i int, result1 error)

func (*Zipper) AddWithMode

func (fake *Zipper) AddWithMode(arg1 string, arg2 io.Reader, arg3 fs.FileMode) error

func (*Zipper) AddWithModeArgsForCall

func (fake *Zipper) AddWithModeArgsForCall(i int) (string, io.Reader, fs.FileMode)

func (*Zipper) AddWithModeCallCount

func (fake *Zipper) AddWithModeCallCount() int

func (*Zipper) AddWithModeCalls

func (fake *Zipper) AddWithModeCalls(stub func(string, io.Reader, fs.FileMode) error)

func (*Zipper) AddWithModeReturns

func (fake *Zipper) AddWithModeReturns(result1 error)

func (*Zipper) AddWithModeReturnsOnCall

func (fake *Zipper) AddWithModeReturnsOnCall(i int, result1 error)

func (*Zipper) Close

func (fake *Zipper) Close() error

func (*Zipper) CloseCallCount

func (fake *Zipper) CloseCallCount() int

func (*Zipper) CloseCalls

func (fake *Zipper) CloseCalls(stub func() error)

func (*Zipper) CloseReturns

func (fake *Zipper) CloseReturns(result1 error)

func (*Zipper) CloseReturnsOnCall

func (fake *Zipper) CloseReturnsOnCall(i int, result1 error)

func (*Zipper) CreateFolder

func (fake *Zipper) CreateFolder(arg1 string) error

func (*Zipper) CreateFolderArgsForCall

func (fake *Zipper) CreateFolderArgsForCall(i int) string

func (*Zipper) CreateFolderCallCount

func (fake *Zipper) CreateFolderCallCount() int

func (*Zipper) CreateFolderCalls

func (fake *Zipper) CreateFolderCalls(stub func(string) error)

func (*Zipper) CreateFolderReturns

func (fake *Zipper) CreateFolderReturns(result1 error)

func (*Zipper) CreateFolderReturnsOnCall

func (fake *Zipper) CreateFolderReturnsOnCall(i int, result1 error)

func (*Zipper) Invocations

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

func (*Zipper) SetWriter

func (fake *Zipper) SetWriter(arg1 io.Writer)

func (*Zipper) SetWriterArgsForCall

func (fake *Zipper) SetWriterArgsForCall(i int) io.Writer

func (*Zipper) SetWriterCallCount

func (fake *Zipper) SetWriterCallCount() int

func (*Zipper) SetWriterCalls

func (fake *Zipper) SetWriterCalls(stub func(io.Writer))

Jump to

Keyboard shortcuts

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