mocks

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFileReader

type MockFileReader struct {
	mock.Mock
}

MockFileReader is an autogenerated mock type for the FileReader type

func NewMockFileReader

func NewMockFileReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileReader

NewMockFileReader creates a new instance of MockFileReader. 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 (*MockFileReader) EXPECT

func (*MockFileReader) ReadFile

func (_m *MockFileReader) ReadFile(filePath string) ([]byte, error)

ReadFile provides a mock function with given fields: filePath

type MockFileReader_Expecter

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

func (*MockFileReader_Expecter) ReadFile

func (_e *MockFileReader_Expecter) ReadFile(filePath interface{}) *MockFileReader_ReadFile_Call

ReadFile is a helper method to define mock.On call

  • filePath string

type MockFileReader_ReadFile_Call

type MockFileReader_ReadFile_Call struct {
	*mock.Call
}

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

func (*MockFileReader_ReadFile_Call) Return

func (*MockFileReader_ReadFile_Call) Run

func (*MockFileReader_ReadFile_Call) RunAndReturn

Jump to

Keyboard shortcuts

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