util_test

package
v1.3.1113 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 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 added in v1.3.1104

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 added in v1.3.1104

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 added in v1.3.818

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 added in v1.3.1104

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

func (*MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentDir_OngoingVerification added in v1.3.1104

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

func (*MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentEnv_OngoingVerification added in v1.3.1104

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

func (*MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentName_OngoingVerification added in v1.3.1104

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

func (*MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentName_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_CurrentName_OngoingVerification) GetCapturedArguments()

type MockCommander_DidError_OngoingVerification added in v1.3.1104

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

func (*MockCommander_DidError_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_DidError_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidError_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_DidError_OngoingVerification) GetCapturedArguments()

type MockCommander_DidFail_OngoingVerification added in v1.3.1104

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

func (*MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidFail_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_DidFail_OngoingVerification) GetCapturedArguments()

type MockCommander_Error_OngoingVerification added in v1.3.1104

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

func (*MockCommander_Error_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_Error_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Error_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_Error_OngoingVerification) GetCapturedArguments()

type MockCommander_RunWithoutRetry_OngoingVerification added in v1.3.1104

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

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments()

type MockCommander_Run_OngoingVerification added in v1.3.1104

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

func (*MockCommander_Run_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (c *MockCommander_Run_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Run_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_Run_OngoingVerification) GetCapturedArguments()

type MockCommander_SetArgs_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetArgs_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetArgs_OngoingVerification) GetCapturedArguments added in v1.3.1104

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

type MockCommander_SetDir_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetDir_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetDir_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_SetDir_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetEnvVariable_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments added in v1.3.1104

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

type MockCommander_SetEnv_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetEnv_OngoingVerification) GetCapturedArguments added in v1.3.1104

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

type MockCommander_SetExponentialBackOff_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments added in v1.3.1104

type MockCommander_SetName_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetName_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetName_OngoingVerification) GetCapturedArguments added in v1.3.1104

func (c *MockCommander_SetName_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetTimeout_OngoingVerification added in v1.3.1104

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

func (*MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments added in v1.3.1104

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

func (*MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments added in v1.3.1104

type VerifierMockCommander added in v1.3.1104

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

func (*VerifierMockCommander) CurrentArgs added in v1.3.1104

func (*VerifierMockCommander) CurrentDir added in v1.3.1104

func (*VerifierMockCommander) CurrentEnv added in v1.3.1104

func (*VerifierMockCommander) CurrentName added in v1.3.1104

func (*VerifierMockCommander) DidError added in v1.3.1104

func (*VerifierMockCommander) DidFail added in v1.3.1104

func (*VerifierMockCommander) Error added in v1.3.1104

func (*VerifierMockCommander) Run added in v1.3.1104

func (*VerifierMockCommander) RunWithoutRetry added in v1.3.1104

func (*VerifierMockCommander) SetArgs added in v1.3.1104

func (*VerifierMockCommander) SetDir added in v1.3.1104

func (*VerifierMockCommander) SetEnv added in v1.3.1104

func (*VerifierMockCommander) SetEnvVariable added in v1.3.1104

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

func (*VerifierMockCommander) SetExponentialBackOff added in v1.3.1104

func (*VerifierMockCommander) SetName added in v1.3.1104

func (*VerifierMockCommander) SetTimeout added in v1.3.1104

Jump to

Keyboard shortcuts

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