mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Reader) ContentFile

func (_m *Reader) ContentFile(index int) ([]byte, error)

ContentFile provides a mock function with given fields: index

func (*Reader) Create

func (_m *Reader) Create(filepath string) error

Create provides a mock function with given fields: filepath

func (*Reader) EXPECT

func (_m *Reader) EXPECT() *Reader_Expecter

func (*Reader) InfoFile

func (_m *Reader) InfoFile(index int) (fs.FileInfo, error)

InfoFile provides a mock function with given fields: index

func (*Reader) NFiles

func (_m *Reader) NFiles() int

NFiles provides a mock function with given fields:

func (*Reader) WriteFile

func (_m *Reader) WriteFile(index int, filepath string) error

WriteFile provides a mock function with given fields: index, filepath

type Reader_ContentFile_Call

type Reader_ContentFile_Call struct {
	*mock.Call
}

Reader_ContentFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentFile'

func (*Reader_ContentFile_Call) Return

func (*Reader_ContentFile_Call) Run

func (_c *Reader_ContentFile_Call) Run(run func(index int)) *Reader_ContentFile_Call

func (*Reader_ContentFile_Call) RunAndReturn

func (_c *Reader_ContentFile_Call) RunAndReturn(run func(int) ([]byte, error)) *Reader_ContentFile_Call

type Reader_Create_Call

type Reader_Create_Call struct {
	*mock.Call
}

Reader_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Reader_Create_Call) Return

func (_c *Reader_Create_Call) Return(_a0 error) *Reader_Create_Call

func (*Reader_Create_Call) Run

func (_c *Reader_Create_Call) Run(run func(filepath string)) *Reader_Create_Call

func (*Reader_Create_Call) RunAndReturn

func (_c *Reader_Create_Call) RunAndReturn(run func(string) error) *Reader_Create_Call

type Reader_Expecter

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

func (*Reader_Expecter) ContentFile

func (_e *Reader_Expecter) ContentFile(index interface{}) *Reader_ContentFile_Call

ContentFile is a helper method to define mock.On call

  • index int

func (*Reader_Expecter) Create

func (_e *Reader_Expecter) Create(filepath interface{}) *Reader_Create_Call

Create is a helper method to define mock.On call

  • filepath string

func (*Reader_Expecter) InfoFile

func (_e *Reader_Expecter) InfoFile(index interface{}) *Reader_InfoFile_Call

InfoFile is a helper method to define mock.On call

  • index int

func (*Reader_Expecter) NFiles

func (_e *Reader_Expecter) NFiles() *Reader_NFiles_Call

NFiles is a helper method to define mock.On call

func (*Reader_Expecter) WriteFile

func (_e *Reader_Expecter) WriteFile(index interface{}, filepath interface{}) *Reader_WriteFile_Call

WriteFile is a helper method to define mock.On call

  • index int
  • filepath string

type Reader_InfoFile_Call

type Reader_InfoFile_Call struct {
	*mock.Call
}

Reader_InfoFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InfoFile'

func (*Reader_InfoFile_Call) Return

func (*Reader_InfoFile_Call) Run

func (_c *Reader_InfoFile_Call) Run(run func(index int)) *Reader_InfoFile_Call

func (*Reader_InfoFile_Call) RunAndReturn

func (_c *Reader_InfoFile_Call) RunAndReturn(run func(int) (fs.FileInfo, error)) *Reader_InfoFile_Call

type Reader_NFiles_Call

type Reader_NFiles_Call struct {
	*mock.Call
}

Reader_NFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NFiles'

func (*Reader_NFiles_Call) Return

func (_c *Reader_NFiles_Call) Return(_a0 int) *Reader_NFiles_Call

func (*Reader_NFiles_Call) Run

func (_c *Reader_NFiles_Call) Run(run func()) *Reader_NFiles_Call

func (*Reader_NFiles_Call) RunAndReturn

func (_c *Reader_NFiles_Call) RunAndReturn(run func() int) *Reader_NFiles_Call

type Reader_WriteFile_Call

type Reader_WriteFile_Call struct {
	*mock.Call
}

Reader_WriteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteFile'

func (*Reader_WriteFile_Call) Return

func (*Reader_WriteFile_Call) Run

func (_c *Reader_WriteFile_Call) Run(run func(index int, filepath string)) *Reader_WriteFile_Call

func (*Reader_WriteFile_Call) RunAndReturn

func (_c *Reader_WriteFile_Call) RunAndReturn(run func(int, string) error) *Reader_WriteFile_Call

Jump to

Keyboard shortcuts

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