opctx_test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package opctx_test is a generated GoMock package.

Index

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) GetArgs

func (m *MockCmd) GetArgs() []string

GetArgs mocks base method.

func (*MockCmd) Run

func (m *MockCmd) Run(ctx context.Context) error

Run mocks base method.

func (*MockCmd) RunAndGetOutput

func (m *MockCmd) RunAndGetOutput(ctx context.Context) (string, error)

RunAndGetOutput mocks base method.

func (*MockCmd) SetDescription

func (m *MockCmd) SetDescription(description string) opctx.Cmd

SetDescription mocks base method.

func (*MockCmd) SetLongRunning

func (m *MockCmd) SetLongRunning(progressTitle string) opctx.Cmd

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.

func (*MockCmd) SetStderr

func (m *MockCmd) SetStderr(stderr io.Writer)

SetStderr mocks base method.

func (*MockCmd) SetStdin

func (m *MockCmd) SetStdin(stdin io.Reader)

SetStdin mocks base method.

func (*MockCmd) SetStdout

func (m *MockCmd) SetStdout(stdout io.Writer)

SetStdout mocks base method.

func (*MockCmd) Start

func (m *MockCmd) Start(ctx context.Context) error

Start mocks base method.

func (*MockCmd) Wait

func (m *MockCmd) Wait(ctx context.Context) error

Wait 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) Command

func (m *MockCmdFactory) Command(cmd *exec.Cmd) (opctx.Cmd, error)

Command mocks base method.

func (*MockCmdFactory) CommandInSearchPath

func (m *MockCmdFactory) CommandInSearchPath(name string) bool

CommandInSearchPath mocks base method.

func (*MockCmdFactory) EXPECT

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.

func (*MockCmdMockRecorder) Start

func (mr *MockCmdMockRecorder) Start(ctx any) *gomock.Call

Start indicates an expected call of Start.

func (*MockCmdMockRecorder) Wait

func (mr *MockCmdMockRecorder) Wait(ctx any) *gomock.Call

Wait indicates an expected call of Wait.

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

func (m *MockCtx) AllPromptsAccepted() bool

AllPromptsAccepted mocks base method.

func (*MockCtx) Command

func (m *MockCtx) Command(cmd *exec.Cmd) (opctx.Cmd, error)

Command mocks base method.

func (*MockCtx) CommandInSearchPath

func (m *MockCtx) CommandInSearchPath(name string) bool

CommandInSearchPath mocks base method.

func (*MockCtx) ConfirmAutoResolution

func (m *MockCtx) ConfirmAutoResolution(text string) bool

ConfirmAutoResolution mocks base method.

func (*MockCtx) Deadline

func (m *MockCtx) Deadline() (time.Time, bool)

Deadline mocks base method.

func (*MockCtx) Done

func (m *MockCtx) Done() <-chan struct{}

Done mocks base method.

func (*MockCtx) DryRun

func (m *MockCtx) DryRun() bool

DryRun 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) Err

func (m *MockCtx) Err() error

Err mocks base method.

func (*MockCtx) Event

func (m *MockCtx) Event(name string, args ...any)

Event mocks base method.

func (*MockCtx) FS

func (m *MockCtx) FS() opctx.FS

FS mocks base method.

func (*MockCtx) OSEnv

func (m *MockCtx) OSEnv() opctx.OSEnv

OSEnv mocks base method.

func (*MockCtx) PromptsAllowed

func (m *MockCtx) PromptsAllowed() bool

PromptsAllowed mocks base method.

func (*MockCtx) StartEvent

func (m *MockCtx) StartEvent(name string, args ...any) opctx.Event

StartEvent mocks base method.

func (*MockCtx) Value

func (m *MockCtx) Value(key any) any

Value mocks base method.

func (*MockCtx) Verbose

func (m *MockCtx) Verbose() bool

Verbose 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) DryRun

func (m *MockDryRunnable) DryRun() bool

DryRun mocks base method.

func (*MockDryRunnable) EXPECT

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) End

func (m *MockEvent) End()

End mocks base method.

func (*MockEvent) SetLongRunning

func (m *MockEvent) SetLongRunning(title string)

SetLongRunning mocks base method.

func (*MockEvent) SetProgress

func (m *MockEvent) SetProgress(unitsComplete, totalUnits int64)

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

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) Chmod

func (m *MockFS) Chmod(name string, mode os.FileMode) error

Chmod mocks base method.

func (*MockFS) Chown

func (m *MockFS) Chown(name string, uid, gid int) error

Chown mocks base method.

func (*MockFS) Chtimes

func (m *MockFS) Chtimes(name string, atime, mtime time.Time) error

Chtimes mocks base method.

func (*MockFS) Create

func (m *MockFS) Create(name string) (afero.File, error)

Create mocks base method.

func (*MockFS) EXPECT

func (m *MockFS) EXPECT() *MockFSMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFS) Mkdir

func (m *MockFS) Mkdir(name string, perm os.FileMode) error

Mkdir mocks base method.

func (*MockFS) MkdirAll

func (m *MockFS) MkdirAll(path string, perm os.FileMode) error

MkdirAll mocks base method.

func (*MockFS) Name

func (m *MockFS) Name() string

Name mocks base method.

func (*MockFS) Open

func (m *MockFS) Open(name string) (afero.File, error)

Open mocks base method.

func (*MockFS) OpenFile

func (m *MockFS) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

OpenFile mocks base method.

func (*MockFS) Remove

func (m *MockFS) Remove(name string) error

Remove mocks base method.

func (*MockFS) RemoveAll

func (m *MockFS) RemoveAll(path string) error

RemoveAll mocks base method.

func (*MockFS) Rename

func (m *MockFS) Rename(oldname, newname string) error

Rename mocks base method.

func (*MockFS) Stat

func (m *MockFS) Stat(name string) (os.FileInfo, error)

Stat mocks base method.

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.

func (*MockFSMockRecorder) Rename

func (mr *MockFSMockRecorder) Rename(oldname, newname any) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockFSMockRecorder) Stat

func (mr *MockFSMockRecorder) Stat(name any) *gomock.Call

Stat indicates an expected call of Stat.

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) Close

func (m *MockFile) Close() error

Close mocks base method.

func (*MockFile) EXPECT

func (m *MockFile) EXPECT() *MockFileMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFile) Name

func (m *MockFile) Name() string

Name mocks base method.

func (*MockFile) Read

func (m *MockFile) Read(p []byte) (int, error)

Read mocks base method.

func (*MockFile) ReadAt

func (m *MockFile) ReadAt(p []byte, off int64) (int, error)

ReadAt mocks base method.

func (*MockFile) Readdir

func (m *MockFile) Readdir(count int) ([]os.FileInfo, error)

Readdir mocks base method.

func (*MockFile) Readdirnames

func (m *MockFile) Readdirnames(n int) ([]string, error)

Readdirnames mocks base method.

func (*MockFile) Seek

func (m *MockFile) Seek(offset int64, whence int) (int64, error)

Seek mocks base method.

func (*MockFile) Stat

func (m *MockFile) Stat() (os.FileInfo, error)

Stat mocks base method.

func (*MockFile) Sync

func (m *MockFile) Sync() error

Sync mocks base method.

func (*MockFile) Truncate

func (m *MockFile) Truncate(size int64) error

Truncate mocks base method.

func (*MockFile) Write

func (m *MockFile) Write(p []byte) (int, error)

Write mocks base method.

func (*MockFile) WriteAt

func (m *MockFile) WriteAt(p []byte, off int64) (int, error)

WriteAt mocks base method.

func (*MockFile) WriteString

func (m *MockFile) WriteString(s string) (int, error)

WriteString 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

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

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) Chdir

func (m *MockOSEnv) Chdir(path string) error

Chdir mocks base method.

func (*MockOSEnv) EXPECT

func (m *MockOSEnv) EXPECT() *MockOSEnvMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOSEnv) Getenv

func (m *MockOSEnv) Getenv(key string) string

Getenv mocks base method.

func (*MockOSEnv) Getwd

func (m *MockOSEnv) Getwd() (string, error)

Getwd mocks base method.

func (*MockOSEnv) IsCurrentUserMemberOf

func (m *MockOSEnv) IsCurrentUserMemberOf(groupName string) (bool, error)

IsCurrentUserMemberOf mocks base method.

func (*MockOSEnv) LookupGroupID

func (m *MockOSEnv) LookupGroupID(groupName string) (int, error)

LookupGroupID 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

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

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVerbosity) Verbose

func (m *MockVerbosity) Verbose() bool

Verbose mocks base method.

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.

Jump to

Keyboard shortcuts

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