Documentation
¶
Overview ¶
Package opctx_test is a generated GoMock package.
Index ¶
- type MockCmd
- func (m *MockCmd) AddRealTimeFileListener(path string, listener opctx.LineListener) error
- func (m *MockCmd) EXPECT() *MockCmdMockRecorder
- func (m *MockCmd) GetArgs() []string
- func (m *MockCmd) Run(ctx context.Context) error
- func (m *MockCmd) RunAndGetOutput(ctx context.Context) (string, error)
- func (m *MockCmd) SetDescription(description string) opctx.Cmd
- func (m *MockCmd) SetLongRunning(progressTitle string) opctx.Cmd
- func (m *MockCmd) SetRealTimeStderrListener(listener opctx.LineListener) error
- func (m *MockCmd) SetRealTimeStdoutListener(listener opctx.LineListener) error
- func (m *MockCmd) SetStderr(stderr io.Writer)
- func (m *MockCmd) SetStdin(stdin io.Reader)
- func (m *MockCmd) SetStdout(stdout io.Writer)
- func (m *MockCmd) Start(ctx context.Context) error
- func (m *MockCmd) Wait(ctx context.Context) error
- type MockCmdFactory
- type MockCmdFactoryMockRecorder
- type MockCmdMockRecorder
- func (mr *MockCmdMockRecorder) AddRealTimeFileListener(path, listener any) *gomock.Call
- func (mr *MockCmdMockRecorder) GetArgs() *gomock.Call
- func (mr *MockCmdMockRecorder) Run(ctx any) *gomock.Call
- func (mr *MockCmdMockRecorder) RunAndGetOutput(ctx any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetDescription(description any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetLongRunning(progressTitle any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetRealTimeStderrListener(listener any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetRealTimeStdoutListener(listener any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStderr(stderr any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStdin(stdin any) *gomock.Call
- func (mr *MockCmdMockRecorder) SetStdout(stdout any) *gomock.Call
- func (mr *MockCmdMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockCmdMockRecorder) Wait(ctx any) *gomock.Call
- type MockCtx
- func (m *MockCtx) AllPromptsAccepted() bool
- func (m *MockCtx) Command(cmd *exec.Cmd) (opctx.Cmd, error)
- func (m *MockCtx) CommandInSearchPath(name string) bool
- func (m *MockCtx) ConfirmAutoResolution(text string) bool
- func (m *MockCtx) Deadline() (time.Time, bool)
- func (m *MockCtx) Done() <-chan struct{}
- func (m *MockCtx) DryRun() bool
- func (m *MockCtx) EXPECT() *MockCtxMockRecorder
- func (m *MockCtx) Err() error
- func (m *MockCtx) Event(name string, args ...any)
- func (m *MockCtx) FS() opctx.FS
- func (m *MockCtx) OSEnv() opctx.OSEnv
- func (m *MockCtx) PromptsAllowed() bool
- func (m *MockCtx) StartEvent(name string, args ...any) opctx.Event
- func (m *MockCtx) Value(key any) any
- func (m *MockCtx) Verbose() bool
- type MockCtxMockRecorder
- func (mr *MockCtxMockRecorder) AllPromptsAccepted() *gomock.Call
- func (mr *MockCtxMockRecorder) Command(cmd any) *gomock.Call
- func (mr *MockCtxMockRecorder) CommandInSearchPath(name any) *gomock.Call
- func (mr *MockCtxMockRecorder) ConfirmAutoResolution(text any) *gomock.Call
- func (mr *MockCtxMockRecorder) Deadline() *gomock.Call
- func (mr *MockCtxMockRecorder) Done() *gomock.Call
- func (mr *MockCtxMockRecorder) DryRun() *gomock.Call
- func (mr *MockCtxMockRecorder) Err() *gomock.Call
- func (mr *MockCtxMockRecorder) Event(name any, args ...any) *gomock.Call
- func (mr *MockCtxMockRecorder) FS() *gomock.Call
- func (mr *MockCtxMockRecorder) OSEnv() *gomock.Call
- func (mr *MockCtxMockRecorder) PromptsAllowed() *gomock.Call
- func (mr *MockCtxMockRecorder) StartEvent(name any, args ...any) *gomock.Call
- func (mr *MockCtxMockRecorder) Value(key any) *gomock.Call
- func (mr *MockCtxMockRecorder) Verbose() *gomock.Call
- type MockDryRunnable
- type MockDryRunnableMockRecorder
- type MockEvent
- type MockEventListener
- type MockEventListenerMockRecorder
- type MockEventMockRecorder
- type MockFS
- func (m *MockFS) Chmod(name string, mode os.FileMode) error
- func (m *MockFS) Chown(name string, uid, gid int) error
- func (m *MockFS) Chtimes(name string, atime, mtime time.Time) error
- func (m *MockFS) Create(name string) (afero.File, error)
- func (m *MockFS) EXPECT() *MockFSMockRecorder
- func (m *MockFS) Mkdir(name string, perm os.FileMode) error
- func (m *MockFS) MkdirAll(path string, perm os.FileMode) error
- func (m *MockFS) Name() string
- func (m *MockFS) Open(name string) (afero.File, error)
- func (m *MockFS) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (m *MockFS) Remove(name string) error
- func (m *MockFS) RemoveAll(path string) error
- func (m *MockFS) Rename(oldname, newname string) error
- func (m *MockFS) Stat(name string) (os.FileInfo, error)
- type MockFSMockRecorder
- func (mr *MockFSMockRecorder) Chmod(name, mode any) *gomock.Call
- func (mr *MockFSMockRecorder) Chown(name, uid, gid any) *gomock.Call
- func (mr *MockFSMockRecorder) Chtimes(name, atime, mtime any) *gomock.Call
- func (mr *MockFSMockRecorder) Create(name any) *gomock.Call
- func (mr *MockFSMockRecorder) Mkdir(name, perm any) *gomock.Call
- func (mr *MockFSMockRecorder) MkdirAll(path, perm any) *gomock.Call
- func (mr *MockFSMockRecorder) Name() *gomock.Call
- func (mr *MockFSMockRecorder) Open(name any) *gomock.Call
- func (mr *MockFSMockRecorder) OpenFile(name, flag, perm any) *gomock.Call
- func (mr *MockFSMockRecorder) Remove(name any) *gomock.Call
- func (mr *MockFSMockRecorder) RemoveAll(path any) *gomock.Call
- func (mr *MockFSMockRecorder) Rename(oldname, newname any) *gomock.Call
- func (mr *MockFSMockRecorder) Stat(name any) *gomock.Call
- type MockFile
- func (m *MockFile) Close() error
- func (m *MockFile) EXPECT() *MockFileMockRecorder
- func (m *MockFile) Name() string
- func (m *MockFile) Read(p []byte) (int, error)
- func (m *MockFile) ReadAt(p []byte, off int64) (int, error)
- func (m *MockFile) Readdir(count int) ([]os.FileInfo, error)
- func (m *MockFile) Readdirnames(n int) ([]string, error)
- func (m *MockFile) Seek(offset int64, whence int) (int64, error)
- func (m *MockFile) Stat() (os.FileInfo, error)
- func (m *MockFile) Sync() error
- func (m *MockFile) Truncate(size int64) error
- func (m *MockFile) Write(p []byte) (int, error)
- func (m *MockFile) WriteAt(p []byte, off int64) (int, error)
- func (m *MockFile) WriteString(s string) (int, error)
- type MockFileMockRecorder
- func (mr *MockFileMockRecorder) Close() *gomock.Call
- func (mr *MockFileMockRecorder) Name() *gomock.Call
- func (mr *MockFileMockRecorder) Read(p any) *gomock.Call
- func (mr *MockFileMockRecorder) ReadAt(p, off any) *gomock.Call
- func (mr *MockFileMockRecorder) Readdir(count any) *gomock.Call
- func (mr *MockFileMockRecorder) Readdirnames(n any) *gomock.Call
- func (mr *MockFileMockRecorder) Seek(offset, whence any) *gomock.Call
- func (mr *MockFileMockRecorder) Stat() *gomock.Call
- func (mr *MockFileMockRecorder) Sync() *gomock.Call
- func (mr *MockFileMockRecorder) Truncate(size any) *gomock.Call
- func (mr *MockFileMockRecorder) Write(p any) *gomock.Call
- func (mr *MockFileMockRecorder) WriteAt(p, off any) *gomock.Call
- func (mr *MockFileMockRecorder) WriteString(s any) *gomock.Call
- type MockFileSystemFactory
- type MockFileSystemFactoryMockRecorder
- type MockOSEnv
- func (m *MockOSEnv) Chdir(path string) error
- func (m *MockOSEnv) EXPECT() *MockOSEnvMockRecorder
- func (m *MockOSEnv) Getenv(key string) string
- func (m *MockOSEnv) Getwd() (string, error)
- func (m *MockOSEnv) IsCurrentUserMemberOf(groupName string) (bool, error)
- func (m *MockOSEnv) LookupGroupID(groupName string) (int, error)
- type MockOSEnvFactory
- type MockOSEnvFactoryMockRecorder
- type MockOSEnvMockRecorder
- func (mr *MockOSEnvMockRecorder) Chdir(path any) *gomock.Call
- func (mr *MockOSEnvMockRecorder) Getenv(key any) *gomock.Call
- func (mr *MockOSEnvMockRecorder) Getwd() *gomock.Call
- func (mr *MockOSEnvMockRecorder) IsCurrentUserMemberOf(groupName any) *gomock.Call
- func (mr *MockOSEnvMockRecorder) LookupGroupID(groupName any) *gomock.Call
- type MockPrompter
- type MockPrompterMockRecorder
- type MockVerbosity
- type MockVerbosityMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCmd ¶
type MockCmd struct {
// contains filtered or unexported fields
}
MockCmd is a mock of Cmd interface.
func NewMockCmd ¶
func NewMockCmd(ctrl *gomock.Controller) *MockCmd
NewMockCmd creates a new mock instance.
func (*MockCmd) AddRealTimeFileListener ¶
func (m *MockCmd) AddRealTimeFileListener(path string, listener opctx.LineListener) error
AddRealTimeFileListener mocks base method.
func (*MockCmd) EXPECT ¶
func (m *MockCmd) EXPECT() *MockCmdMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCmd) RunAndGetOutput ¶
RunAndGetOutput mocks base method.
func (*MockCmd) SetDescription ¶
SetDescription mocks base method.
func (*MockCmd) SetLongRunning ¶
SetLongRunning mocks base method.
func (*MockCmd) SetRealTimeStderrListener ¶
func (m *MockCmd) SetRealTimeStderrListener(listener opctx.LineListener) error
SetRealTimeStderrListener mocks base method.
func (*MockCmd) SetRealTimeStdoutListener ¶
func (m *MockCmd) SetRealTimeStdoutListener(listener opctx.LineListener) error
SetRealTimeStdoutListener mocks base method.
type MockCmdFactory ¶
type MockCmdFactory struct {
// contains filtered or unexported fields
}
MockCmdFactory is a mock of CmdFactory interface.
func NewMockCmdFactory ¶
func NewMockCmdFactory(ctrl *gomock.Controller) *MockCmdFactory
NewMockCmdFactory creates a new mock instance.
func (*MockCmdFactory) CommandInSearchPath ¶
func (m *MockCmdFactory) CommandInSearchPath(name string) bool
CommandInSearchPath mocks base method.
func (*MockCmdFactory) EXPECT ¶
func (m *MockCmdFactory) EXPECT() *MockCmdFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCmdFactoryMockRecorder ¶
type MockCmdFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCmdFactoryMockRecorder is the mock recorder for MockCmdFactory.
func (*MockCmdFactoryMockRecorder) Command ¶
func (mr *MockCmdFactoryMockRecorder) Command(cmd any) *gomock.Call
Command indicates an expected call of Command.
func (*MockCmdFactoryMockRecorder) CommandInSearchPath ¶
func (mr *MockCmdFactoryMockRecorder) CommandInSearchPath(name any) *gomock.Call
CommandInSearchPath indicates an expected call of CommandInSearchPath.
type MockCmdMockRecorder ¶
type MockCmdMockRecorder struct {
// contains filtered or unexported fields
}
MockCmdMockRecorder is the mock recorder for MockCmd.
func (*MockCmdMockRecorder) AddRealTimeFileListener ¶
func (mr *MockCmdMockRecorder) AddRealTimeFileListener(path, listener any) *gomock.Call
AddRealTimeFileListener indicates an expected call of AddRealTimeFileListener.
func (*MockCmdMockRecorder) GetArgs ¶
func (mr *MockCmdMockRecorder) GetArgs() *gomock.Call
GetArgs indicates an expected call of GetArgs.
func (*MockCmdMockRecorder) Run ¶
func (mr *MockCmdMockRecorder) Run(ctx any) *gomock.Call
Run indicates an expected call of Run.
func (*MockCmdMockRecorder) RunAndGetOutput ¶
func (mr *MockCmdMockRecorder) RunAndGetOutput(ctx any) *gomock.Call
RunAndGetOutput indicates an expected call of RunAndGetOutput.
func (*MockCmdMockRecorder) SetDescription ¶
func (mr *MockCmdMockRecorder) SetDescription(description any) *gomock.Call
SetDescription indicates an expected call of SetDescription.
func (*MockCmdMockRecorder) SetLongRunning ¶
func (mr *MockCmdMockRecorder) SetLongRunning(progressTitle any) *gomock.Call
SetLongRunning indicates an expected call of SetLongRunning.
func (*MockCmdMockRecorder) SetRealTimeStderrListener ¶
func (mr *MockCmdMockRecorder) SetRealTimeStderrListener(listener any) *gomock.Call
SetRealTimeStderrListener indicates an expected call of SetRealTimeStderrListener.
func (*MockCmdMockRecorder) SetRealTimeStdoutListener ¶
func (mr *MockCmdMockRecorder) SetRealTimeStdoutListener(listener any) *gomock.Call
SetRealTimeStdoutListener indicates an expected call of SetRealTimeStdoutListener.
func (*MockCmdMockRecorder) SetStderr ¶
func (mr *MockCmdMockRecorder) SetStderr(stderr any) *gomock.Call
SetStderr indicates an expected call of SetStderr.
func (*MockCmdMockRecorder) SetStdin ¶
func (mr *MockCmdMockRecorder) SetStdin(stdin any) *gomock.Call
SetStdin indicates an expected call of SetStdin.
func (*MockCmdMockRecorder) SetStdout ¶
func (mr *MockCmdMockRecorder) SetStdout(stdout any) *gomock.Call
SetStdout indicates an expected call of SetStdout.
type MockCtx ¶
type MockCtx struct {
// contains filtered or unexported fields
}
MockCtx is a mock of Ctx interface.
func NewMockCtx ¶
func NewMockCtx(ctrl *gomock.Controller) *MockCtx
NewMockCtx creates a new mock instance.
func (*MockCtx) AllPromptsAccepted ¶
AllPromptsAccepted mocks base method.
func (*MockCtx) CommandInSearchPath ¶
CommandInSearchPath mocks base method.
func (*MockCtx) ConfirmAutoResolution ¶
ConfirmAutoResolution mocks base method.
func (*MockCtx) EXPECT ¶
func (m *MockCtx) EXPECT() *MockCtxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCtx) PromptsAllowed ¶
PromptsAllowed mocks base method.
func (*MockCtx) StartEvent ¶
StartEvent mocks base method.
type MockCtxMockRecorder ¶
type MockCtxMockRecorder struct {
// contains filtered or unexported fields
}
MockCtxMockRecorder is the mock recorder for MockCtx.
func (*MockCtxMockRecorder) AllPromptsAccepted ¶
func (mr *MockCtxMockRecorder) AllPromptsAccepted() *gomock.Call
AllPromptsAccepted indicates an expected call of AllPromptsAccepted.
func (*MockCtxMockRecorder) Command ¶
func (mr *MockCtxMockRecorder) Command(cmd any) *gomock.Call
Command indicates an expected call of Command.
func (*MockCtxMockRecorder) CommandInSearchPath ¶
func (mr *MockCtxMockRecorder) CommandInSearchPath(name any) *gomock.Call
CommandInSearchPath indicates an expected call of CommandInSearchPath.
func (*MockCtxMockRecorder) ConfirmAutoResolution ¶
func (mr *MockCtxMockRecorder) ConfirmAutoResolution(text any) *gomock.Call
ConfirmAutoResolution indicates an expected call of ConfirmAutoResolution.
func (*MockCtxMockRecorder) Deadline ¶
func (mr *MockCtxMockRecorder) Deadline() *gomock.Call
Deadline indicates an expected call of Deadline.
func (*MockCtxMockRecorder) Done ¶
func (mr *MockCtxMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockCtxMockRecorder) DryRun ¶
func (mr *MockCtxMockRecorder) DryRun() *gomock.Call
DryRun indicates an expected call of DryRun.
func (*MockCtxMockRecorder) Err ¶
func (mr *MockCtxMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockCtxMockRecorder) Event ¶
func (mr *MockCtxMockRecorder) Event(name any, args ...any) *gomock.Call
Event indicates an expected call of Event.
func (*MockCtxMockRecorder) FS ¶
func (mr *MockCtxMockRecorder) FS() *gomock.Call
FS indicates an expected call of FS.
func (*MockCtxMockRecorder) OSEnv ¶
func (mr *MockCtxMockRecorder) OSEnv() *gomock.Call
OSEnv indicates an expected call of OSEnv.
func (*MockCtxMockRecorder) PromptsAllowed ¶
func (mr *MockCtxMockRecorder) PromptsAllowed() *gomock.Call
PromptsAllowed indicates an expected call of PromptsAllowed.
func (*MockCtxMockRecorder) StartEvent ¶
func (mr *MockCtxMockRecorder) StartEvent(name any, args ...any) *gomock.Call
StartEvent indicates an expected call of StartEvent.
func (*MockCtxMockRecorder) Value ¶
func (mr *MockCtxMockRecorder) Value(key any) *gomock.Call
Value indicates an expected call of Value.
func (*MockCtxMockRecorder) Verbose ¶
func (mr *MockCtxMockRecorder) Verbose() *gomock.Call
Verbose indicates an expected call of Verbose.
type MockDryRunnable ¶
type MockDryRunnable struct {
// contains filtered or unexported fields
}
MockDryRunnable is a mock of DryRunnable interface.
func NewMockDryRunnable ¶
func NewMockDryRunnable(ctrl *gomock.Controller) *MockDryRunnable
NewMockDryRunnable creates a new mock instance.
func NewNoOpMockDryRunnable ¶
func NewNoOpMockDryRunnable(ctrl *gomock.Controller) *MockDryRunnable
func (*MockDryRunnable) EXPECT ¶
func (m *MockDryRunnable) EXPECT() *MockDryRunnableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDryRunnableMockRecorder ¶
type MockDryRunnableMockRecorder struct {
// contains filtered or unexported fields
}
MockDryRunnableMockRecorder is the mock recorder for MockDryRunnable.
func (*MockDryRunnableMockRecorder) DryRun ¶
func (mr *MockDryRunnableMockRecorder) DryRun() *gomock.Call
DryRun indicates an expected call of DryRun.
type MockEvent ¶
type MockEvent struct {
// contains filtered or unexported fields
}
MockEvent is a mock of Event interface.
func NewMockEvent ¶
func NewMockEvent(ctrl *gomock.Controller) *MockEvent
NewMockEvent creates a new mock instance.
func NoOpMockEvent ¶
func NoOpMockEvent(ctrl *gomock.Controller) *MockEvent
func (*MockEvent) EXPECT ¶
func (m *MockEvent) EXPECT() *MockEventMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEvent) SetLongRunning ¶
SetLongRunning mocks base method.
func (*MockEvent) SetProgress ¶
SetProgress mocks base method.
type MockEventListener ¶
type MockEventListener struct {
// contains filtered or unexported fields
}
MockEventListener is a mock of EventListener interface.
func NewMockEventListener ¶
func NewMockEventListener(ctrl *gomock.Controller) *MockEventListener
NewMockEventListener creates a new mock instance.
func NewNoOpMockEventListener ¶
func NewNoOpMockEventListener(ctrl *gomock.Controller) *MockEventListener
func (*MockEventListener) EXPECT ¶
func (m *MockEventListener) EXPECT() *MockEventListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEventListener) Event ¶
func (m *MockEventListener) Event(name string, args ...any)
Event mocks base method.
func (*MockEventListener) StartEvent ¶
func (m *MockEventListener) StartEvent(name string, args ...any) opctx.Event
StartEvent mocks base method.
type MockEventListenerMockRecorder ¶
type MockEventListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockEventListenerMockRecorder is the mock recorder for MockEventListener.
func (*MockEventListenerMockRecorder) Event ¶
func (mr *MockEventListenerMockRecorder) Event(name any, args ...any) *gomock.Call
Event indicates an expected call of Event.
func (*MockEventListenerMockRecorder) StartEvent ¶
func (mr *MockEventListenerMockRecorder) StartEvent(name any, args ...any) *gomock.Call
StartEvent indicates an expected call of StartEvent.
type MockEventMockRecorder ¶
type MockEventMockRecorder struct {
// contains filtered or unexported fields
}
MockEventMockRecorder is the mock recorder for MockEvent.
func (*MockEventMockRecorder) End ¶
func (mr *MockEventMockRecorder) End() *gomock.Call
End indicates an expected call of End.
func (*MockEventMockRecorder) SetLongRunning ¶
func (mr *MockEventMockRecorder) SetLongRunning(title any) *gomock.Call
SetLongRunning indicates an expected call of SetLongRunning.
func (*MockEventMockRecorder) SetProgress ¶
func (mr *MockEventMockRecorder) SetProgress(unitsComplete, totalUnits any) *gomock.Call
SetProgress indicates an expected call of SetProgress.
type MockFS ¶
type MockFS struct {
// contains filtered or unexported fields
}
MockFS is a mock of FS interface.
func NewMockFS ¶
func NewMockFS(ctrl *gomock.Controller) *MockFS
NewMockFS creates a new mock instance.
func (*MockFS) EXPECT ¶
func (m *MockFS) EXPECT() *MockFSMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFSMockRecorder ¶
type MockFSMockRecorder struct {
// contains filtered or unexported fields
}
MockFSMockRecorder is the mock recorder for MockFS.
func (*MockFSMockRecorder) Chmod ¶
func (mr *MockFSMockRecorder) Chmod(name, mode any) *gomock.Call
Chmod indicates an expected call of Chmod.
func (*MockFSMockRecorder) Chown ¶
func (mr *MockFSMockRecorder) Chown(name, uid, gid any) *gomock.Call
Chown indicates an expected call of Chown.
func (*MockFSMockRecorder) Chtimes ¶
func (mr *MockFSMockRecorder) Chtimes(name, atime, mtime any) *gomock.Call
Chtimes indicates an expected call of Chtimes.
func (*MockFSMockRecorder) Create ¶
func (mr *MockFSMockRecorder) Create(name any) *gomock.Call
Create indicates an expected call of Create.
func (*MockFSMockRecorder) Mkdir ¶
func (mr *MockFSMockRecorder) Mkdir(name, perm any) *gomock.Call
Mkdir indicates an expected call of Mkdir.
func (*MockFSMockRecorder) MkdirAll ¶
func (mr *MockFSMockRecorder) MkdirAll(path, perm any) *gomock.Call
MkdirAll indicates an expected call of MkdirAll.
func (*MockFSMockRecorder) Name ¶
func (mr *MockFSMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFSMockRecorder) Open ¶
func (mr *MockFSMockRecorder) Open(name any) *gomock.Call
Open indicates an expected call of Open.
func (*MockFSMockRecorder) OpenFile ¶
func (mr *MockFSMockRecorder) OpenFile(name, flag, perm any) *gomock.Call
OpenFile indicates an expected call of OpenFile.
func (*MockFSMockRecorder) Remove ¶
func (mr *MockFSMockRecorder) Remove(name any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockFSMockRecorder) RemoveAll ¶
func (mr *MockFSMockRecorder) RemoveAll(path any) *gomock.Call
RemoveAll indicates an expected call of RemoveAll.
type MockFile ¶
type MockFile struct {
// contains filtered or unexported fields
}
MockFile is a mock of File interface.
func NewMockFile ¶
func NewMockFile(ctrl *gomock.Controller) *MockFile
NewMockFile creates a new mock instance.
func (*MockFile) EXPECT ¶
func (m *MockFile) EXPECT() *MockFileMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFile) Readdirnames ¶
Readdirnames mocks base method.
type MockFileMockRecorder ¶
type MockFileMockRecorder struct {
// contains filtered or unexported fields
}
MockFileMockRecorder is the mock recorder for MockFile.
func (*MockFileMockRecorder) Close ¶
func (mr *MockFileMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockFileMockRecorder) Name ¶
func (mr *MockFileMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFileMockRecorder) Read ¶
func (mr *MockFileMockRecorder) Read(p any) *gomock.Call
Read indicates an expected call of Read.
func (*MockFileMockRecorder) ReadAt ¶
func (mr *MockFileMockRecorder) ReadAt(p, off any) *gomock.Call
ReadAt indicates an expected call of ReadAt.
func (*MockFileMockRecorder) Readdir ¶
func (mr *MockFileMockRecorder) Readdir(count any) *gomock.Call
Readdir indicates an expected call of Readdir.
func (*MockFileMockRecorder) Readdirnames ¶
func (mr *MockFileMockRecorder) Readdirnames(n any) *gomock.Call
Readdirnames indicates an expected call of Readdirnames.
func (*MockFileMockRecorder) Seek ¶
func (mr *MockFileMockRecorder) Seek(offset, whence any) *gomock.Call
Seek indicates an expected call of Seek.
func (*MockFileMockRecorder) Stat ¶
func (mr *MockFileMockRecorder) Stat() *gomock.Call
Stat indicates an expected call of Stat.
func (*MockFileMockRecorder) Sync ¶
func (mr *MockFileMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockFileMockRecorder) Truncate ¶
func (mr *MockFileMockRecorder) Truncate(size any) *gomock.Call
Truncate indicates an expected call of Truncate.
func (*MockFileMockRecorder) Write ¶
func (mr *MockFileMockRecorder) Write(p any) *gomock.Call
Write indicates an expected call of Write.
func (*MockFileMockRecorder) WriteAt ¶
func (mr *MockFileMockRecorder) WriteAt(p, off any) *gomock.Call
WriteAt indicates an expected call of WriteAt.
func (*MockFileMockRecorder) WriteString ¶
func (mr *MockFileMockRecorder) WriteString(s any) *gomock.Call
WriteString indicates an expected call of WriteString.
type MockFileSystemFactory ¶
type MockFileSystemFactory struct {
// contains filtered or unexported fields
}
MockFileSystemFactory is a mock of FileSystemFactory interface.
func NewMockFileSystemFactory ¶
func NewMockFileSystemFactory(ctrl *gomock.Controller) *MockFileSystemFactory
NewMockFileSystemFactory creates a new mock instance.
func (*MockFileSystemFactory) EXPECT ¶
func (m *MockFileSystemFactory) EXPECT() *MockFileSystemFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileSystemFactory) FS ¶
func (m *MockFileSystemFactory) FS() opctx.FS
FS mocks base method.
type MockFileSystemFactoryMockRecorder ¶
type MockFileSystemFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemFactoryMockRecorder is the mock recorder for MockFileSystemFactory.
func (*MockFileSystemFactoryMockRecorder) FS ¶
func (mr *MockFileSystemFactoryMockRecorder) FS() *gomock.Call
FS indicates an expected call of FS.
type MockOSEnv ¶
type MockOSEnv struct {
// contains filtered or unexported fields
}
MockOSEnv is a mock of OSEnv interface.
func NewMockOSEnv ¶
func NewMockOSEnv(ctrl *gomock.Controller) *MockOSEnv
NewMockOSEnv creates a new mock instance.
func (*MockOSEnv) EXPECT ¶
func (m *MockOSEnv) EXPECT() *MockOSEnvMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOSEnv) IsCurrentUserMemberOf ¶
IsCurrentUserMemberOf mocks base method.
type MockOSEnvFactory ¶
type MockOSEnvFactory struct {
// contains filtered or unexported fields
}
MockOSEnvFactory is a mock of OSEnvFactory interface.
func NewMockOSEnvFactory ¶
func NewMockOSEnvFactory(ctrl *gomock.Controller) *MockOSEnvFactory
NewMockOSEnvFactory creates a new mock instance.
func (*MockOSEnvFactory) EXPECT ¶
func (m *MockOSEnvFactory) EXPECT() *MockOSEnvFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOSEnvFactory) OSEnv ¶
func (m *MockOSEnvFactory) OSEnv() opctx.OSEnv
OSEnv mocks base method.
type MockOSEnvFactoryMockRecorder ¶
type MockOSEnvFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockOSEnvFactoryMockRecorder is the mock recorder for MockOSEnvFactory.
func (*MockOSEnvFactoryMockRecorder) OSEnv ¶
func (mr *MockOSEnvFactoryMockRecorder) OSEnv() *gomock.Call
OSEnv indicates an expected call of OSEnv.
type MockOSEnvMockRecorder ¶
type MockOSEnvMockRecorder struct {
// contains filtered or unexported fields
}
MockOSEnvMockRecorder is the mock recorder for MockOSEnv.
func (*MockOSEnvMockRecorder) Chdir ¶
func (mr *MockOSEnvMockRecorder) Chdir(path any) *gomock.Call
Chdir indicates an expected call of Chdir.
func (*MockOSEnvMockRecorder) Getenv ¶
func (mr *MockOSEnvMockRecorder) Getenv(key any) *gomock.Call
Getenv indicates an expected call of Getenv.
func (*MockOSEnvMockRecorder) Getwd ¶
func (mr *MockOSEnvMockRecorder) Getwd() *gomock.Call
Getwd indicates an expected call of Getwd.
func (*MockOSEnvMockRecorder) IsCurrentUserMemberOf ¶
func (mr *MockOSEnvMockRecorder) IsCurrentUserMemberOf(groupName any) *gomock.Call
IsCurrentUserMemberOf indicates an expected call of IsCurrentUserMemberOf.
func (*MockOSEnvMockRecorder) LookupGroupID ¶
func (mr *MockOSEnvMockRecorder) LookupGroupID(groupName any) *gomock.Call
LookupGroupID indicates an expected call of LookupGroupID.
type MockPrompter ¶
type MockPrompter struct {
// contains filtered or unexported fields
}
MockPrompter is a mock of Prompter interface.
func NewMockPrompter ¶
func NewMockPrompter(ctrl *gomock.Controller) *MockPrompter
NewMockPrompter creates a new mock instance.
func (*MockPrompter) AllPromptsAccepted ¶
func (m *MockPrompter) AllPromptsAccepted() bool
AllPromptsAccepted mocks base method.
func (*MockPrompter) ConfirmAutoResolution ¶
func (m *MockPrompter) ConfirmAutoResolution(text string) bool
ConfirmAutoResolution mocks base method.
func (*MockPrompter) EXPECT ¶
func (m *MockPrompter) EXPECT() *MockPrompterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrompter) PromptsAllowed ¶
func (m *MockPrompter) PromptsAllowed() bool
PromptsAllowed mocks base method.
type MockPrompterMockRecorder ¶
type MockPrompterMockRecorder struct {
// contains filtered or unexported fields
}
MockPrompterMockRecorder is the mock recorder for MockPrompter.
func (*MockPrompterMockRecorder) AllPromptsAccepted ¶
func (mr *MockPrompterMockRecorder) AllPromptsAccepted() *gomock.Call
AllPromptsAccepted indicates an expected call of AllPromptsAccepted.
func (*MockPrompterMockRecorder) ConfirmAutoResolution ¶
func (mr *MockPrompterMockRecorder) ConfirmAutoResolution(text any) *gomock.Call
ConfirmAutoResolution indicates an expected call of ConfirmAutoResolution.
func (*MockPrompterMockRecorder) PromptsAllowed ¶
func (mr *MockPrompterMockRecorder) PromptsAllowed() *gomock.Call
PromptsAllowed indicates an expected call of PromptsAllowed.
type MockVerbosity ¶
type MockVerbosity struct {
// contains filtered or unexported fields
}
MockVerbosity is a mock of Verbosity interface.
func NewMockVerbosity ¶
func NewMockVerbosity(ctrl *gomock.Controller) *MockVerbosity
NewMockVerbosity creates a new mock instance.
func (*MockVerbosity) EXPECT ¶
func (m *MockVerbosity) EXPECT() *MockVerbosityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVerbosityMockRecorder ¶
type MockVerbosityMockRecorder struct {
// contains filtered or unexported fields
}
MockVerbosityMockRecorder is the mock recorder for MockVerbosity.
func (*MockVerbosityMockRecorder) Verbose ¶
func (mr *MockVerbosityMockRecorder) Verbose() *gomock.Call
Verbose indicates an expected call of Verbose.