mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOSLayer

type MockOSLayer struct {
	mock.Mock
}

MockOSLayer is an autogenerated mock type for the OSLayer type

func NewMockOSLayer

func NewMockOSLayer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOSLayer

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

func (_m *MockOSLayer) EXPECT() *MockOSLayer_Expecter

func (*MockOSLayer) Stat

func (_mock *MockOSLayer) Stat(filePath string) (osfacade.FileInfo, error)

Stat provides a mock function for the type MockOSLayer

type MockOSLayer_Expecter

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

func (*MockOSLayer_Expecter) Stat

func (_e *MockOSLayer_Expecter) Stat(filePath interface{}) *MockOSLayer_Stat_Call

Stat is a helper method to define mock.On call

  • filePath string

type MockOSLayer_Stat_Call

type MockOSLayer_Stat_Call struct {
	*mock.Call
}

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

func (*MockOSLayer_Stat_Call) Return

func (*MockOSLayer_Stat_Call) Run

func (_c *MockOSLayer_Stat_Call) Run(run func(filePath string)) *MockOSLayer_Stat_Call

func (*MockOSLayer_Stat_Call) RunAndReturn

func (_c *MockOSLayer_Stat_Call) RunAndReturn(run func(filePath string) (osfacade.FileInfo, error)) *MockOSLayer_Stat_Call

Jump to

Keyboard shortcuts

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