Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockEnvironment
- type MockEnvironmentExpandEnvCall
- type MockEnvironmentGetenvCall
- type MockEnvironmentMockRecorder
- func (mr *MockEnvironmentMockRecorder) ExpandEnv(arg0 any) *MockEnvironmentExpandEnvCall
- func (mr *MockEnvironmentMockRecorder) Getenv(arg0 any) *MockEnvironmentGetenvCall
- func (mr *MockEnvironmentMockRecorder) Setenv(arg0, arg1 any) *MockEnvironmentSetenvCall
- func (mr *MockEnvironmentMockRecorder) Unsetenv(arg0 any) *MockEnvironmentUnsetenvCall
- type MockEnvironmentSetenvCall
- type MockEnvironmentUnsetenvCall
- type MockFileReaderWriter
- func (m *MockFileReaderWriter) EXPECT() *MockFileReaderWriterMockRecorder
- func (m *MockFileReaderWriter) MkdirAll(arg0 string, arg1 fs.FileMode) error
- func (m *MockFileReaderWriter) ReadFile(arg0 string) ([]byte, error)
- func (m *MockFileReaderWriter) Reader(arg0 string) (io.ReadCloser, error)
- func (m *MockFileReaderWriter) RemoveAll(arg0 string) error
- func (m *MockFileReaderWriter) Stat(arg0 string) (fs.FileInfo, error)
- func (m *MockFileReaderWriter) Symlink(arg0, arg1 string) error
- func (m *MockFileReaderWriter) WriteFile(arg0 string, arg1 []byte, arg2 fs.FileMode) error
- func (m *MockFileReaderWriter) Writer(arg0 string, arg1 fs.FileMode) (io.WriteCloser, error)
- type MockFileReaderWriterMkdirAllCall
- func (c *MockFileReaderWriterMkdirAllCall) Do(f func(string, fs.FileMode) error) *MockFileReaderWriterMkdirAllCall
- func (c *MockFileReaderWriterMkdirAllCall) DoAndReturn(f func(string, fs.FileMode) error) *MockFileReaderWriterMkdirAllCall
- func (c *MockFileReaderWriterMkdirAllCall) Return(arg0 error) *MockFileReaderWriterMkdirAllCall
- type MockFileReaderWriterMockRecorder
- func (mr *MockFileReaderWriterMockRecorder) MkdirAll(arg0, arg1 any) *MockFileReaderWriterMkdirAllCall
- func (mr *MockFileReaderWriterMockRecorder) ReadFile(arg0 any) *MockFileReaderWriterReadFileCall
- func (mr *MockFileReaderWriterMockRecorder) Reader(arg0 any) *MockFileReaderWriterReaderCall
- func (mr *MockFileReaderWriterMockRecorder) RemoveAll(arg0 any) *MockFileReaderWriterRemoveAllCall
- func (mr *MockFileReaderWriterMockRecorder) Stat(arg0 any) *MockFileReaderWriterStatCall
- func (mr *MockFileReaderWriterMockRecorder) Symlink(arg0, arg1 any) *MockFileReaderWriterSymlinkCall
- func (mr *MockFileReaderWriterMockRecorder) WriteFile(arg0, arg1, arg2 any) *MockFileReaderWriterWriteFileCall
- func (mr *MockFileReaderWriterMockRecorder) Writer(arg0, arg1 any) *MockFileReaderWriterWriterCall
- type MockFileReaderWriterReadFileCall
- func (c *MockFileReaderWriterReadFileCall) Do(f func(string) ([]byte, error)) *MockFileReaderWriterReadFileCall
- func (c *MockFileReaderWriterReadFileCall) DoAndReturn(f func(string) ([]byte, error)) *MockFileReaderWriterReadFileCall
- func (c *MockFileReaderWriterReadFileCall) Return(arg0 []byte, arg1 error) *MockFileReaderWriterReadFileCall
- type MockFileReaderWriterReaderCall
- func (c *MockFileReaderWriterReaderCall) Do(f func(string) (io.ReadCloser, error)) *MockFileReaderWriterReaderCall
- func (c *MockFileReaderWriterReaderCall) DoAndReturn(f func(string) (io.ReadCloser, error)) *MockFileReaderWriterReaderCall
- func (c *MockFileReaderWriterReaderCall) Return(arg0 io.ReadCloser, arg1 error) *MockFileReaderWriterReaderCall
- type MockFileReaderWriterRemoveAllCall
- func (c *MockFileReaderWriterRemoveAllCall) Do(f func(string) error) *MockFileReaderWriterRemoveAllCall
- func (c *MockFileReaderWriterRemoveAllCall) DoAndReturn(f func(string) error) *MockFileReaderWriterRemoveAllCall
- func (c *MockFileReaderWriterRemoveAllCall) Return(arg0 error) *MockFileReaderWriterRemoveAllCall
- type MockFileReaderWriterStatCall
- func (c *MockFileReaderWriterStatCall) Do(f func(string) (fs.FileInfo, error)) *MockFileReaderWriterStatCall
- func (c *MockFileReaderWriterStatCall) DoAndReturn(f func(string) (fs.FileInfo, error)) *MockFileReaderWriterStatCall
- func (c *MockFileReaderWriterStatCall) Return(arg0 fs.FileInfo, arg1 error) *MockFileReaderWriterStatCall
- type MockFileReaderWriterSymlinkCall
- func (c *MockFileReaderWriterSymlinkCall) Do(f func(string, string) error) *MockFileReaderWriterSymlinkCall
- func (c *MockFileReaderWriterSymlinkCall) DoAndReturn(f func(string, string) error) *MockFileReaderWriterSymlinkCall
- func (c *MockFileReaderWriterSymlinkCall) Return(arg0 error) *MockFileReaderWriterSymlinkCall
- type MockFileReaderWriterWriteFileCall
- func (c *MockFileReaderWriterWriteFileCall) Do(f func(string, []byte, fs.FileMode) error) *MockFileReaderWriterWriteFileCall
- func (c *MockFileReaderWriterWriteFileCall) DoAndReturn(f func(string, []byte, fs.FileMode) error) *MockFileReaderWriterWriteFileCall
- func (c *MockFileReaderWriterWriteFileCall) Return(arg0 error) *MockFileReaderWriterWriteFileCall
- type MockFileReaderWriterWriterCall
- func (c *MockFileReaderWriterWriterCall) Do(f func(string, fs.FileMode) (io.WriteCloser, error)) *MockFileReaderWriterWriterCall
- func (c *MockFileReaderWriterWriterCall) DoAndReturn(f func(string, fs.FileMode) (io.WriteCloser, error)) *MockFileReaderWriterWriterCall
- func (c *MockFileReaderWriterWriterCall) Return(arg0 io.WriteCloser, arg1 error) *MockFileReaderWriterWriterCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnvironment ¶
type MockEnvironment struct {
// contains filtered or unexported fields
}
MockEnvironment is a mock of Environment interface.
func NewMockEnvironment ¶
func NewMockEnvironment(ctrl *gomock.Controller) *MockEnvironment
NewMockEnvironment creates a new mock instance.
func (*MockEnvironment) EXPECT ¶
func (m *MockEnvironment) EXPECT() *MockEnvironmentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnvironment) ExpandEnv ¶
func (m *MockEnvironment) ExpandEnv(arg0 string) string
ExpandEnv mocks base method.
func (*MockEnvironment) Getenv ¶
func (m *MockEnvironment) Getenv(arg0 string) string
Getenv mocks base method.
func (*MockEnvironment) Setenv ¶
func (m *MockEnvironment) Setenv(arg0, arg1 string) error
Setenv mocks base method.
func (*MockEnvironment) Unsetenv ¶
func (m *MockEnvironment) Unsetenv(arg0 string) error
Unsetenv mocks base method.
type MockEnvironmentExpandEnvCall ¶
MockEnvironmentExpandEnvCall wrap *gomock.Call
func (*MockEnvironmentExpandEnvCall) Do ¶
func (c *MockEnvironmentExpandEnvCall) Do(f func(string) string) *MockEnvironmentExpandEnvCall
Do rewrite *gomock.Call.Do
func (*MockEnvironmentExpandEnvCall) DoAndReturn ¶
func (c *MockEnvironmentExpandEnvCall) DoAndReturn(f func(string) string) *MockEnvironmentExpandEnvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironmentExpandEnvCall) Return ¶
func (c *MockEnvironmentExpandEnvCall) Return(arg0 string) *MockEnvironmentExpandEnvCall
Return rewrite *gomock.Call.Return
type MockEnvironmentGetenvCall ¶
MockEnvironmentGetenvCall wrap *gomock.Call
func (*MockEnvironmentGetenvCall) Do ¶
func (c *MockEnvironmentGetenvCall) Do(f func(string) string) *MockEnvironmentGetenvCall
Do rewrite *gomock.Call.Do
func (*MockEnvironmentGetenvCall) DoAndReturn ¶
func (c *MockEnvironmentGetenvCall) DoAndReturn(f func(string) string) *MockEnvironmentGetenvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironmentGetenvCall) Return ¶
func (c *MockEnvironmentGetenvCall) Return(arg0 string) *MockEnvironmentGetenvCall
Return rewrite *gomock.Call.Return
type MockEnvironmentMockRecorder ¶
type MockEnvironmentMockRecorder struct {
// contains filtered or unexported fields
}
MockEnvironmentMockRecorder is the mock recorder for MockEnvironment.
func (*MockEnvironmentMockRecorder) ExpandEnv ¶
func (mr *MockEnvironmentMockRecorder) ExpandEnv(arg0 any) *MockEnvironmentExpandEnvCall
ExpandEnv indicates an expected call of ExpandEnv.
func (*MockEnvironmentMockRecorder) Getenv ¶
func (mr *MockEnvironmentMockRecorder) Getenv(arg0 any) *MockEnvironmentGetenvCall
Getenv indicates an expected call of Getenv.
func (*MockEnvironmentMockRecorder) Setenv ¶
func (mr *MockEnvironmentMockRecorder) Setenv(arg0, arg1 any) *MockEnvironmentSetenvCall
Setenv indicates an expected call of Setenv.
func (*MockEnvironmentMockRecorder) Unsetenv ¶
func (mr *MockEnvironmentMockRecorder) Unsetenv(arg0 any) *MockEnvironmentUnsetenvCall
Unsetenv indicates an expected call of Unsetenv.
type MockEnvironmentSetenvCall ¶
MockEnvironmentSetenvCall wrap *gomock.Call
func (*MockEnvironmentSetenvCall) Do ¶
func (c *MockEnvironmentSetenvCall) Do(f func(string, string) error) *MockEnvironmentSetenvCall
Do rewrite *gomock.Call.Do
func (*MockEnvironmentSetenvCall) DoAndReturn ¶
func (c *MockEnvironmentSetenvCall) DoAndReturn(f func(string, string) error) *MockEnvironmentSetenvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironmentSetenvCall) Return ¶
func (c *MockEnvironmentSetenvCall) Return(arg0 error) *MockEnvironmentSetenvCall
Return rewrite *gomock.Call.Return
type MockEnvironmentUnsetenvCall ¶
MockEnvironmentUnsetenvCall wrap *gomock.Call
func (*MockEnvironmentUnsetenvCall) Do ¶
func (c *MockEnvironmentUnsetenvCall) Do(f func(string) error) *MockEnvironmentUnsetenvCall
Do rewrite *gomock.Call.Do
func (*MockEnvironmentUnsetenvCall) DoAndReturn ¶
func (c *MockEnvironmentUnsetenvCall) DoAndReturn(f func(string) error) *MockEnvironmentUnsetenvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironmentUnsetenvCall) Return ¶
func (c *MockEnvironmentUnsetenvCall) Return(arg0 error) *MockEnvironmentUnsetenvCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriter ¶
type MockFileReaderWriter struct {
// contains filtered or unexported fields
}
MockFileReaderWriter is a mock of FileReaderWriter interface.
func NewMockFileReaderWriter ¶
func NewMockFileReaderWriter(ctrl *gomock.Controller) *MockFileReaderWriter
NewMockFileReaderWriter creates a new mock instance.
func (*MockFileReaderWriter) EXPECT ¶
func (m *MockFileReaderWriter) EXPECT() *MockFileReaderWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileReaderWriter) MkdirAll ¶
func (m *MockFileReaderWriter) MkdirAll(arg0 string, arg1 fs.FileMode) error
MkdirAll mocks base method.
func (*MockFileReaderWriter) ReadFile ¶
func (m *MockFileReaderWriter) ReadFile(arg0 string) ([]byte, error)
ReadFile mocks base method.
func (*MockFileReaderWriter) Reader ¶
func (m *MockFileReaderWriter) Reader(arg0 string) (io.ReadCloser, error)
Reader mocks base method.
func (*MockFileReaderWriter) RemoveAll ¶
func (m *MockFileReaderWriter) RemoveAll(arg0 string) error
RemoveAll mocks base method.
func (*MockFileReaderWriter) Stat ¶
func (m *MockFileReaderWriter) Stat(arg0 string) (fs.FileInfo, error)
Stat mocks base method.
func (*MockFileReaderWriter) Symlink ¶
func (m *MockFileReaderWriter) Symlink(arg0, arg1 string) error
Symlink mocks base method.
func (*MockFileReaderWriter) Writer ¶
func (m *MockFileReaderWriter) Writer(arg0 string, arg1 fs.FileMode) (io.WriteCloser, error)
Writer mocks base method.
type MockFileReaderWriterMkdirAllCall ¶
MockFileReaderWriterMkdirAllCall wrap *gomock.Call
func (*MockFileReaderWriterMkdirAllCall) Do ¶
func (c *MockFileReaderWriterMkdirAllCall) Do(f func(string, fs.FileMode) error) *MockFileReaderWriterMkdirAllCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterMkdirAllCall) DoAndReturn ¶
func (c *MockFileReaderWriterMkdirAllCall) DoAndReturn(f func(string, fs.FileMode) error) *MockFileReaderWriterMkdirAllCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterMkdirAllCall) Return ¶
func (c *MockFileReaderWriterMkdirAllCall) Return(arg0 error) *MockFileReaderWriterMkdirAllCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterMockRecorder ¶
type MockFileReaderWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockFileReaderWriterMockRecorder is the mock recorder for MockFileReaderWriter.
func (*MockFileReaderWriterMockRecorder) MkdirAll ¶
func (mr *MockFileReaderWriterMockRecorder) MkdirAll(arg0, arg1 any) *MockFileReaderWriterMkdirAllCall
MkdirAll indicates an expected call of MkdirAll.
func (*MockFileReaderWriterMockRecorder) ReadFile ¶
func (mr *MockFileReaderWriterMockRecorder) ReadFile(arg0 any) *MockFileReaderWriterReadFileCall
ReadFile indicates an expected call of ReadFile.
func (*MockFileReaderWriterMockRecorder) Reader ¶
func (mr *MockFileReaderWriterMockRecorder) Reader(arg0 any) *MockFileReaderWriterReaderCall
Reader indicates an expected call of Reader.
func (*MockFileReaderWriterMockRecorder) RemoveAll ¶
func (mr *MockFileReaderWriterMockRecorder) RemoveAll(arg0 any) *MockFileReaderWriterRemoveAllCall
RemoveAll indicates an expected call of RemoveAll.
func (*MockFileReaderWriterMockRecorder) Stat ¶
func (mr *MockFileReaderWriterMockRecorder) Stat(arg0 any) *MockFileReaderWriterStatCall
Stat indicates an expected call of Stat.
func (*MockFileReaderWriterMockRecorder) Symlink ¶
func (mr *MockFileReaderWriterMockRecorder) Symlink(arg0, arg1 any) *MockFileReaderWriterSymlinkCall
Symlink indicates an expected call of Symlink.
func (*MockFileReaderWriterMockRecorder) WriteFile ¶
func (mr *MockFileReaderWriterMockRecorder) WriteFile(arg0, arg1, arg2 any) *MockFileReaderWriterWriteFileCall
WriteFile indicates an expected call of WriteFile.
func (*MockFileReaderWriterMockRecorder) Writer ¶
func (mr *MockFileReaderWriterMockRecorder) Writer(arg0, arg1 any) *MockFileReaderWriterWriterCall
Writer indicates an expected call of Writer.
type MockFileReaderWriterReadFileCall ¶
MockFileReaderWriterReadFileCall wrap *gomock.Call
func (*MockFileReaderWriterReadFileCall) Do ¶
func (c *MockFileReaderWriterReadFileCall) Do(f func(string) ([]byte, error)) *MockFileReaderWriterReadFileCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterReadFileCall) DoAndReturn ¶
func (c *MockFileReaderWriterReadFileCall) DoAndReturn(f func(string) ([]byte, error)) *MockFileReaderWriterReadFileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterReadFileCall) Return ¶
func (c *MockFileReaderWriterReadFileCall) Return(arg0 []byte, arg1 error) *MockFileReaderWriterReadFileCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterReaderCall ¶
MockFileReaderWriterReaderCall wrap *gomock.Call
func (*MockFileReaderWriterReaderCall) Do ¶
func (c *MockFileReaderWriterReaderCall) Do(f func(string) (io.ReadCloser, error)) *MockFileReaderWriterReaderCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterReaderCall) DoAndReturn ¶
func (c *MockFileReaderWriterReaderCall) DoAndReturn(f func(string) (io.ReadCloser, error)) *MockFileReaderWriterReaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterReaderCall) Return ¶
func (c *MockFileReaderWriterReaderCall) Return(arg0 io.ReadCloser, arg1 error) *MockFileReaderWriterReaderCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterRemoveAllCall ¶
MockFileReaderWriterRemoveAllCall wrap *gomock.Call
func (*MockFileReaderWriterRemoveAllCall) Do ¶
func (c *MockFileReaderWriterRemoveAllCall) Do(f func(string) error) *MockFileReaderWriterRemoveAllCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterRemoveAllCall) DoAndReturn ¶
func (c *MockFileReaderWriterRemoveAllCall) DoAndReturn(f func(string) error) *MockFileReaderWriterRemoveAllCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterRemoveAllCall) Return ¶
func (c *MockFileReaderWriterRemoveAllCall) Return(arg0 error) *MockFileReaderWriterRemoveAllCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterStatCall ¶
MockFileReaderWriterStatCall wrap *gomock.Call
func (*MockFileReaderWriterStatCall) Do ¶
func (c *MockFileReaderWriterStatCall) Do(f func(string) (fs.FileInfo, error)) *MockFileReaderWriterStatCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterStatCall) DoAndReturn ¶
func (c *MockFileReaderWriterStatCall) DoAndReturn(f func(string) (fs.FileInfo, error)) *MockFileReaderWriterStatCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterStatCall) Return ¶
func (c *MockFileReaderWriterStatCall) Return(arg0 fs.FileInfo, arg1 error) *MockFileReaderWriterStatCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterSymlinkCall ¶
MockFileReaderWriterSymlinkCall wrap *gomock.Call
func (*MockFileReaderWriterSymlinkCall) Do ¶
func (c *MockFileReaderWriterSymlinkCall) Do(f func(string, string) error) *MockFileReaderWriterSymlinkCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterSymlinkCall) DoAndReturn ¶
func (c *MockFileReaderWriterSymlinkCall) DoAndReturn(f func(string, string) error) *MockFileReaderWriterSymlinkCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterSymlinkCall) Return ¶
func (c *MockFileReaderWriterSymlinkCall) Return(arg0 error) *MockFileReaderWriterSymlinkCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterWriteFileCall ¶
MockFileReaderWriterWriteFileCall wrap *gomock.Call
func (*MockFileReaderWriterWriteFileCall) Do ¶
func (c *MockFileReaderWriterWriteFileCall) Do(f func(string, []byte, fs.FileMode) error) *MockFileReaderWriterWriteFileCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterWriteFileCall) DoAndReturn ¶
func (c *MockFileReaderWriterWriteFileCall) DoAndReturn(f func(string, []byte, fs.FileMode) error) *MockFileReaderWriterWriteFileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterWriteFileCall) Return ¶
func (c *MockFileReaderWriterWriteFileCall) Return(arg0 error) *MockFileReaderWriterWriteFileCall
Return rewrite *gomock.Call.Return
type MockFileReaderWriterWriterCall ¶
MockFileReaderWriterWriterCall wrap *gomock.Call
func (*MockFileReaderWriterWriterCall) Do ¶
func (c *MockFileReaderWriterWriterCall) Do(f func(string, fs.FileMode) (io.WriteCloser, error)) *MockFileReaderWriterWriterCall
Do rewrite *gomock.Call.Do
func (*MockFileReaderWriterWriterCall) DoAndReturn ¶
func (c *MockFileReaderWriterWriterCall) DoAndReturn(f func(string, fs.FileMode) (io.WriteCloser, error)) *MockFileReaderWriterWriterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFileReaderWriterWriterCall) Return ¶
func (c *MockFileReaderWriterWriterCall) Return(arg0 io.WriteCloser, arg1 error) *MockFileReaderWriterWriterCall
Return rewrite *gomock.Call.Return