util_test

package
v2.1.141 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 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 MockCommander

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

func NewMockCommander

func NewMockCommander(options ...pegomock.Option) *MockCommander

func (*MockCommander) CurrentArgs

func (mock *MockCommander) CurrentArgs() []string

func (*MockCommander) CurrentDir

func (mock *MockCommander) CurrentDir() string

func (*MockCommander) CurrentEnv

func (mock *MockCommander) CurrentEnv() map[string]string

func (*MockCommander) CurrentName

func (mock *MockCommander) CurrentName() string

func (*MockCommander) DidError

func (mock *MockCommander) DidError() bool

func (*MockCommander) DidFail

func (mock *MockCommander) DidFail() bool

func (*MockCommander) Error

func (mock *MockCommander) Error() error

func (*MockCommander) FailHandler

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

func (*MockCommander) Run

func (mock *MockCommander) Run() (string, error)

func (*MockCommander) RunWithoutRetry

func (mock *MockCommander) RunWithoutRetry() (string, error)

func (*MockCommander) SetArgs

func (mock *MockCommander) SetArgs(_param0 []string)

func (*MockCommander) SetDir

func (mock *MockCommander) SetDir(_param0 string)

func (*MockCommander) SetEnv

func (mock *MockCommander) SetEnv(_param0 map[string]string)

func (*MockCommander) SetEnvVariable

func (mock *MockCommander) SetEnvVariable(_param0 string, _param1 string)

func (*MockCommander) SetExponentialBackOff

func (mock *MockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff)

func (*MockCommander) SetFailHandler

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

func (*MockCommander) SetName

func (mock *MockCommander) SetName(_param0 string)

func (*MockCommander) SetTimeout

func (mock *MockCommander) SetTimeout(_param0 time.Duration)

func (*MockCommander) VerifyWasCalled

func (mock *MockCommander) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockCommander

func (*MockCommander) VerifyWasCalledEventually

func (mock *MockCommander) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockCommander

func (*MockCommander) VerifyWasCalledInOrder

func (mock *MockCommander) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockCommander

func (*MockCommander) VerifyWasCalledOnce

func (mock *MockCommander) VerifyWasCalledOnce() *VerifierMockCommander

type MockCommander_CurrentArgs_OngoingVerification

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

func (*MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments

func (c *MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentDir_OngoingVerification

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

func (*MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments

func (c *MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentEnv_OngoingVerification

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

func (*MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments

func (c *MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentName_OngoingVerification

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

func (*MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentName_OngoingVerification) GetCapturedArguments

func (c *MockCommander_CurrentName_OngoingVerification) GetCapturedArguments()

type MockCommander_DidError_OngoingVerification

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

func (*MockCommander_DidError_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_DidError_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidError_OngoingVerification) GetCapturedArguments

func (c *MockCommander_DidError_OngoingVerification) GetCapturedArguments()

type MockCommander_DidFail_OngoingVerification

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

func (*MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidFail_OngoingVerification) GetCapturedArguments

func (c *MockCommander_DidFail_OngoingVerification) GetCapturedArguments()

type MockCommander_Error_OngoingVerification

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

func (*MockCommander_Error_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_Error_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Error_OngoingVerification) GetCapturedArguments

func (c *MockCommander_Error_OngoingVerification) GetCapturedArguments()

type MockCommander_RunWithoutRetry_OngoingVerification

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

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments()

type MockCommander_Run_OngoingVerification

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

func (*MockCommander_Run_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_Run_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Run_OngoingVerification) GetCapturedArguments

func (c *MockCommander_Run_OngoingVerification) GetCapturedArguments()

type MockCommander_SetArgs_OngoingVerification

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

func (*MockCommander_SetArgs_OngoingVerification) GetAllCapturedArguments

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

func (*MockCommander_SetArgs_OngoingVerification) GetCapturedArguments

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

type MockCommander_SetDir_OngoingVerification

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

func (*MockCommander_SetDir_OngoingVerification) GetAllCapturedArguments

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

func (*MockCommander_SetDir_OngoingVerification) GetCapturedArguments

func (c *MockCommander_SetDir_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetEnvVariable_OngoingVerification

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

func (*MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string)

func (*MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments

func (c *MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments() (string, string)

type MockCommander_SetEnv_OngoingVerification

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

func (*MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments() (_param0 []map[string]string)

func (*MockCommander_SetEnv_OngoingVerification) GetCapturedArguments

func (c *MockCommander_SetEnv_OngoingVerification) GetCapturedArguments() map[string]string

type MockCommander_SetExponentialBackOff_OngoingVerification

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

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments

type MockCommander_SetName_OngoingVerification

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

func (*MockCommander_SetName_OngoingVerification) GetAllCapturedArguments

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

func (*MockCommander_SetName_OngoingVerification) GetCapturedArguments

func (c *MockCommander_SetName_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetTimeout_OngoingVerification

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

func (*MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments

func (c *MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments() (_param0 []time.Duration)

func (*MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments

type VerifierMockCommander

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

func (*VerifierMockCommander) CurrentArgs

func (*VerifierMockCommander) CurrentDir

func (*VerifierMockCommander) CurrentEnv

func (*VerifierMockCommander) CurrentName

func (*VerifierMockCommander) DidError

func (*VerifierMockCommander) DidFail

func (*VerifierMockCommander) Error

func (*VerifierMockCommander) Run

func (*VerifierMockCommander) RunWithoutRetry

func (*VerifierMockCommander) SetArgs

func (*VerifierMockCommander) SetDir

func (*VerifierMockCommander) SetEnv

func (*VerifierMockCommander) SetEnvVariable

func (verifier *VerifierMockCommander) SetEnvVariable(_param0 string, _param1 string) *MockCommander_SetEnvVariable_OngoingVerification

func (*VerifierMockCommander) SetExponentialBackOff

func (*VerifierMockCommander) SetName

func (*VerifierMockCommander) SetTimeout

Jump to

Keyboard shortcuts

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