Documentation
¶
Index ¶
- type MockEnvironment
- type MockEnvironment_Expecter
- type MockEnvironment_Getenv_Call
- type MockFileSystem
- type MockFileSystem_Expecter
- type MockFileSystem_Stat_Call
- func (_c *MockFileSystem_Stat_Call) Return(v os.FileInfo, err error) *MockFileSystem_Stat_Call
- func (_c *MockFileSystem_Stat_Call) Run(run func(name string)) *MockFileSystem_Stat_Call
- func (_c *MockFileSystem_Stat_Call) RunAndReturn(run func(name string) (os.FileInfo, error)) *MockFileSystem_Stat_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnvironment ¶
MockEnvironment is an autogenerated mock type for the Environment type
func NewMockEnvironment ¶
func NewMockEnvironment(t interface {
mock.TestingT
Cleanup(func())
}) *MockEnvironment
NewMockEnvironment creates a new instance of MockEnvironment. 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 (*MockEnvironment) EXPECT ¶
func (_m *MockEnvironment) EXPECT() *MockEnvironment_Expecter
func (*MockEnvironment) Getenv ¶
func (_mock *MockEnvironment) Getenv(key string) string
Getenv provides a mock function for the type MockEnvironment
type MockEnvironment_Expecter ¶
type MockEnvironment_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEnvironment_Expecter) Getenv ¶
func (_e *MockEnvironment_Expecter) Getenv(key interface{}) *MockEnvironment_Getenv_Call
Getenv is a helper method to define mock.On call
- key string
type MockEnvironment_Getenv_Call ¶
MockEnvironment_Getenv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Getenv'
func (*MockEnvironment_Getenv_Call) Return ¶
func (_c *MockEnvironment_Getenv_Call) Return(s string) *MockEnvironment_Getenv_Call
func (*MockEnvironment_Getenv_Call) Run ¶
func (_c *MockEnvironment_Getenv_Call) Run(run func(key string)) *MockEnvironment_Getenv_Call
func (*MockEnvironment_Getenv_Call) RunAndReturn ¶
func (_c *MockEnvironment_Getenv_Call) RunAndReturn(run func(key string) string) *MockEnvironment_Getenv_Call
type MockFileSystem ¶
MockFileSystem is an autogenerated mock type for the FileSystem type
func NewMockFileSystem ¶
func NewMockFileSystem(t interface {
mock.TestingT
Cleanup(func())
}) *MockFileSystem
NewMockFileSystem creates a new instance of MockFileSystem. 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 (*MockFileSystem) EXPECT ¶
func (_m *MockFileSystem) EXPECT() *MockFileSystem_Expecter
type MockFileSystem_Expecter ¶
type MockFileSystem_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFileSystem_Expecter) Stat ¶
func (_e *MockFileSystem_Expecter) Stat(name interface{}) *MockFileSystem_Stat_Call
Stat is a helper method to define mock.On call
- name string
type MockFileSystem_Stat_Call ¶
MockFileSystem_Stat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stat'
func (*MockFileSystem_Stat_Call) Return ¶
func (_c *MockFileSystem_Stat_Call) Return(v os.FileInfo, err error) *MockFileSystem_Stat_Call
func (*MockFileSystem_Stat_Call) Run ¶
func (_c *MockFileSystem_Stat_Call) Run(run func(name string)) *MockFileSystem_Stat_Call
func (*MockFileSystem_Stat_Call) RunAndReturn ¶
func (_c *MockFileSystem_Stat_Call) RunAndReturn(run func(name string) (os.FileInfo, error)) *MockFileSystem_Stat_Call