mocks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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 MockFiler

type MockFiler struct {
	mock.Mock
}

MockFiler is an autogenerated mock type for the Filer type

func NewMockFiler

func NewMockFiler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFiler

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

func (_m *MockFiler) EXPECT() *MockFiler_Expecter

func (*MockFiler) Stat

func (_m *MockFiler) Stat(name string) (fs.FileInfo, error)

Stat provides a mock function with given fields: name

type MockFiler_Expecter

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

func (*MockFiler_Expecter) Stat

func (_e *MockFiler_Expecter) Stat(name interface{}) *MockFiler_Stat_Call

Stat is a helper method to define mock.On call

  • name string

type MockFiler_Stat_Call

type MockFiler_Stat_Call struct {
	*mock.Call
}

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

func (*MockFiler_Stat_Call) Return

func (*MockFiler_Stat_Call) Run

func (_c *MockFiler_Stat_Call) Run(run func(name string)) *MockFiler_Stat_Call

func (*MockFiler_Stat_Call) RunAndReturn

func (_c *MockFiler_Stat_Call) RunAndReturn(run func(string) (fs.FileInfo, error)) *MockFiler_Stat_Call

Jump to

Keyboard shortcuts

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