Documentation
¶
Index ¶
- type MockOSLayer
- type MockOSLayer_Expecter
- type MockOSLayer_Stat_Call
- func (_c *MockOSLayer_Stat_Call) Return(fileInfo osfacade.FileInfo, err error) *MockOSLayer_Stat_Call
- func (_c *MockOSLayer_Stat_Call) Run(run func(filePath string)) *MockOSLayer_Stat_Call
- func (_c *MockOSLayer_Stat_Call) RunAndReturn(run func(filePath string) (osfacade.FileInfo, error)) *MockOSLayer_Stat_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOSLayer ¶
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
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 ¶
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 (_c *MockOSLayer_Stat_Call) Return(fileInfo osfacade.FileInfo, err error) *MockOSLayer_Stat_Call
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
Click to show internal directories.
Click to hide internal directories.