ioutil_fake

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

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 FakeFileInfo

type FakeFileInfo struct {
	NameStub func() string

	SizeStub func() int64

	ModeStub func() os.FileMode

	ModTimeStub func() time.Time

	IsDirStub func() bool

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

func (*FakeFileInfo) IsDir

func (fake *FakeFileInfo) IsDir() bool

func (*FakeFileInfo) IsDirCallCount

func (fake *FakeFileInfo) IsDirCallCount() int

func (*FakeFileInfo) IsDirReturns

func (fake *FakeFileInfo) IsDirReturns(result1 bool)

func (*FakeFileInfo) ModTime

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

func (*FakeFileInfo) ModTimeCallCount

func (fake *FakeFileInfo) ModTimeCallCount() int

func (*FakeFileInfo) ModTimeReturns

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

func (*FakeFileInfo) Mode

func (fake *FakeFileInfo) Mode() os.FileMode

func (*FakeFileInfo) ModeCallCount

func (fake *FakeFileInfo) ModeCallCount() int

func (*FakeFileInfo) ModeReturns

func (fake *FakeFileInfo) ModeReturns(result1 os.FileMode)

func (*FakeFileInfo) Name

func (fake *FakeFileInfo) Name() string

func (*FakeFileInfo) NameCallCount

func (fake *FakeFileInfo) NameCallCount() int

func (*FakeFileInfo) NameReturns

func (fake *FakeFileInfo) NameReturns(result1 string)

func (*FakeFileInfo) Size

func (fake *FakeFileInfo) Size() int64

func (*FakeFileInfo) SizeCallCount

func (fake *FakeFileInfo) SizeCallCount() int

func (*FakeFileInfo) SizeReturns

func (fake *FakeFileInfo) SizeReturns(result1 int64)

func (*FakeFileInfo) Sys

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

func (*FakeFileInfo) SysCallCount

func (fake *FakeFileInfo) SysCallCount() int

func (*FakeFileInfo) SysReturns

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

type FakeIoutil

type FakeIoutil struct {
	NopCloserStub func(io.Reader) io.ReadCloser

	ReadAllStub func(io.Reader) ([]byte, error)

	ReadDirStub func(string) ([]os.FileInfo, error)

	ReadFileStub func(string) ([]byte, error)

	TempDirStub func(string, string) (string, error)

	TempFileStub func(string, string) (osshim.File, error)

	WriteFileStub func(string, []byte, os.FileMode) error
	// contains filtered or unexported fields
}

func (*FakeIoutil) Invocations

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

func (*FakeIoutil) NopCloser

func (fake *FakeIoutil) NopCloser(arg1 io.Reader) io.ReadCloser

func (*FakeIoutil) NopCloserArgsForCall

func (fake *FakeIoutil) NopCloserArgsForCall(i int) io.Reader

func (*FakeIoutil) NopCloserCallCount

func (fake *FakeIoutil) NopCloserCallCount() int

func (*FakeIoutil) NopCloserCalls

func (fake *FakeIoutil) NopCloserCalls(stub func(io.Reader) io.ReadCloser)

func (*FakeIoutil) NopCloserReturns

func (fake *FakeIoutil) NopCloserReturns(result1 io.ReadCloser)

func (*FakeIoutil) NopCloserReturnsOnCall

func (fake *FakeIoutil) NopCloserReturnsOnCall(i int, result1 io.ReadCloser)

func (*FakeIoutil) ReadAll

func (fake *FakeIoutil) ReadAll(arg1 io.Reader) ([]byte, error)

func (*FakeIoutil) ReadAllArgsForCall

func (fake *FakeIoutil) ReadAllArgsForCall(i int) io.Reader

func (*FakeIoutil) ReadAllCallCount

func (fake *FakeIoutil) ReadAllCallCount() int

func (*FakeIoutil) ReadAllCalls

func (fake *FakeIoutil) ReadAllCalls(stub func(io.Reader) ([]byte, error))

func (*FakeIoutil) ReadAllReturns

func (fake *FakeIoutil) ReadAllReturns(result1 []byte, result2 error)

func (*FakeIoutil) ReadAllReturnsOnCall

func (fake *FakeIoutil) ReadAllReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeIoutil) ReadDir

func (fake *FakeIoutil) ReadDir(arg1 string) ([]os.FileInfo, error)

func (*FakeIoutil) ReadDirArgsForCall

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

func (*FakeIoutil) ReadDirCallCount

func (fake *FakeIoutil) ReadDirCallCount() int

func (*FakeIoutil) ReadDirCalls

func (fake *FakeIoutil) ReadDirCalls(stub func(string) ([]os.FileInfo, error))

func (*FakeIoutil) ReadDirReturns

func (fake *FakeIoutil) ReadDirReturns(result1 []os.FileInfo, result2 error)

func (*FakeIoutil) ReadDirReturnsOnCall

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

func (*FakeIoutil) ReadFile

func (fake *FakeIoutil) ReadFile(arg1 string) ([]byte, error)

func (*FakeIoutil) ReadFileArgsForCall

func (fake *FakeIoutil) ReadFileArgsForCall(i int) string

func (*FakeIoutil) ReadFileCallCount

func (fake *FakeIoutil) ReadFileCallCount() int

func (*FakeIoutil) ReadFileCalls

func (fake *FakeIoutil) ReadFileCalls(stub func(string) ([]byte, error))

func (*FakeIoutil) ReadFileReturns

func (fake *FakeIoutil) ReadFileReturns(result1 []byte, result2 error)

func (*FakeIoutil) ReadFileReturnsOnCall

func (fake *FakeIoutil) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeIoutil) TempDir

func (fake *FakeIoutil) TempDir(arg1 string, arg2 string) (string, error)

func (*FakeIoutil) TempDirArgsForCall

func (fake *FakeIoutil) TempDirArgsForCall(i int) (string, string)

func (*FakeIoutil) TempDirCallCount

func (fake *FakeIoutil) TempDirCallCount() int

func (*FakeIoutil) TempDirCalls

func (fake *FakeIoutil) TempDirCalls(stub func(string, string) (string, error))

func (*FakeIoutil) TempDirReturns

func (fake *FakeIoutil) TempDirReturns(result1 string, result2 error)

func (*FakeIoutil) TempDirReturnsOnCall

func (fake *FakeIoutil) TempDirReturnsOnCall(i int, result1 string, result2 error)

func (*FakeIoutil) TempFile

func (fake *FakeIoutil) TempFile(arg1 string, arg2 string) (osshim.File, error)

func (*FakeIoutil) TempFileArgsForCall

func (fake *FakeIoutil) TempFileArgsForCall(i int) (string, string)

func (*FakeIoutil) TempFileCallCount

func (fake *FakeIoutil) TempFileCallCount() int

func (*FakeIoutil) TempFileCalls

func (fake *FakeIoutil) TempFileCalls(stub func(string, string) (osshim.File, error))

func (*FakeIoutil) TempFileReturns

func (fake *FakeIoutil) TempFileReturns(result1 osshim.File, result2 error)

func (*FakeIoutil) TempFileReturnsOnCall

func (fake *FakeIoutil) TempFileReturnsOnCall(i int, result1 osshim.File, result2 error)

func (*FakeIoutil) WriteFile

func (fake *FakeIoutil) WriteFile(arg1 string, arg2 []byte, arg3 os.FileMode) error

func (*FakeIoutil) WriteFileArgsForCall

func (fake *FakeIoutil) WriteFileArgsForCall(i int) (string, []byte, os.FileMode)

func (*FakeIoutil) WriteFileCallCount

func (fake *FakeIoutil) WriteFileCallCount() int

func (*FakeIoutil) WriteFileCalls

func (fake *FakeIoutil) WriteFileCalls(stub func(string, []byte, os.FileMode) error)

func (*FakeIoutil) WriteFileReturns

func (fake *FakeIoutil) WriteFileReturns(result1 error)

func (*FakeIoutil) WriteFileReturnsOnCall

func (fake *FakeIoutil) WriteFileReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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