mocks

package
v0.19.7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExec

type MockExec struct {
	// contains filtered or unexported fields
}

func NewMockExec

func NewMockExec(options ...pegomock.Option) *MockExec

func (*MockExec) CombinedOutput

func (mock *MockExec) CombinedOutput(args []string, envs map[string]string, workdir string) (string, error)

func (*MockExec) FailHandler

func (mock *MockExec) FailHandler() pegomock.FailHandler

func (*MockExec) LookPath

func (mock *MockExec) LookPath(file string) (string, error)

func (*MockExec) SetFailHandler

func (mock *MockExec) SetFailHandler(fh pegomock.FailHandler)

func (*MockExec) VerifyWasCalled

func (mock *MockExec) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockExec

func (*MockExec) VerifyWasCalledEventually

func (mock *MockExec) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockExec

func (*MockExec) VerifyWasCalledInOrder

func (mock *MockExec) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockExec

func (*MockExec) VerifyWasCalledOnce

func (mock *MockExec) VerifyWasCalledOnce() *VerifierMockExec

type MockExec_CombinedOutput_OngoingVerification

type MockExec_CombinedOutput_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockExec_CombinedOutput_OngoingVerification) GetAllCapturedArguments

func (c *MockExec_CombinedOutput_OngoingVerification) GetAllCapturedArguments() (_param0 [][]string, _param1 []map[string]string, _param2 []string)

func (*MockExec_CombinedOutput_OngoingVerification) GetCapturedArguments

func (c *MockExec_CombinedOutput_OngoingVerification) GetCapturedArguments() ([]string, map[string]string, string)

type MockExec_LookPath_OngoingVerification

type MockExec_LookPath_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockExec_LookPath_OngoingVerification) GetAllCapturedArguments

func (c *MockExec_LookPath_OngoingVerification) GetAllCapturedArguments() (_param0 []string)

func (*MockExec_LookPath_OngoingVerification) GetCapturedArguments

func (c *MockExec_LookPath_OngoingVerification) GetCapturedArguments() string

type MockFilePath

type MockFilePath struct {
	// contains filtered or unexported fields
}

func NewMockFilePath

func NewMockFilePath(options ...pegomock.Option) *MockFilePath

func (*MockFilePath) FailHandler

func (mock *MockFilePath) FailHandler() pegomock.FailHandler

func (*MockFilePath) Join

func (mock *MockFilePath) Join(elem ...string) models.FilePath

func (*MockFilePath) NotExists

func (mock *MockFilePath) NotExists() bool

func (*MockFilePath) Resolve

func (mock *MockFilePath) Resolve() string

func (*MockFilePath) SetFailHandler

func (mock *MockFilePath) SetFailHandler(fh pegomock.FailHandler)
func (mock *MockFilePath) Symlink(newname string) (models.FilePath, error)

func (*MockFilePath) VerifyWasCalled

func (mock *MockFilePath) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockFilePath

func (*MockFilePath) VerifyWasCalledEventually

func (mock *MockFilePath) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockFilePath

func (*MockFilePath) VerifyWasCalledInOrder

func (mock *MockFilePath) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockFilePath

func (*MockFilePath) VerifyWasCalledOnce

func (mock *MockFilePath) VerifyWasCalledOnce() *VerifierMockFilePath

type MockFilePath_Join_OngoingVerification

type MockFilePath_Join_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockFilePath_Join_OngoingVerification) GetAllCapturedArguments

func (c *MockFilePath_Join_OngoingVerification) GetAllCapturedArguments() (_param0 [][]string)

func (*MockFilePath_Join_OngoingVerification) GetCapturedArguments

func (c *MockFilePath_Join_OngoingVerification) GetCapturedArguments() []string

type MockFilePath_NotExists_OngoingVerification

type MockFilePath_NotExists_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockFilePath_NotExists_OngoingVerification) GetAllCapturedArguments

func (c *MockFilePath_NotExists_OngoingVerification) GetAllCapturedArguments()

func (*MockFilePath_NotExists_OngoingVerification) GetCapturedArguments

func (c *MockFilePath_NotExists_OngoingVerification) GetCapturedArguments()

type MockFilePath_Resolve_OngoingVerification

type MockFilePath_Resolve_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockFilePath_Resolve_OngoingVerification) GetAllCapturedArguments

func (c *MockFilePath_Resolve_OngoingVerification) GetAllCapturedArguments()

func (*MockFilePath_Resolve_OngoingVerification) GetCapturedArguments

func (c *MockFilePath_Resolve_OngoingVerification) GetCapturedArguments()
type MockFilePath_Symlink_OngoingVerification struct {
	// contains filtered or unexported fields
}
func (c *MockFilePath_Symlink_OngoingVerification) GetAllCapturedArguments() (_param0 []string)
func (c *MockFilePath_Symlink_OngoingVerification) GetCapturedArguments() string

type VerifierMockExec

type VerifierMockExec struct {
	// contains filtered or unexported fields
}

func (*VerifierMockExec) CombinedOutput

func (verifier *VerifierMockExec) CombinedOutput(args []string, envs map[string]string, workdir string) *MockExec_CombinedOutput_OngoingVerification

func (*VerifierMockExec) LookPath

type VerifierMockFilePath

type VerifierMockFilePath struct {
	// contains filtered or unexported fields
}

func (*VerifierMockFilePath) Join

func (*VerifierMockFilePath) NotExists

func (*VerifierMockFilePath) Resolve

Directories

Path Synopsis
Code generated by pegomock.
Code generated by pegomock.

Jump to

Keyboard shortcuts

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