jx: github.com/jenkins-x/jx/pkg/util/mocks Index | Files

package util_test

import "github.com/jenkins-x/jx/pkg/util/mocks"

Index

Package Files

commander.go

type MockCommander Uses

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

func NewMockCommander Uses

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

func (*MockCommander) CurrentArgs Uses

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

func (*MockCommander) CurrentDir Uses

func (mock *MockCommander) CurrentDir() string

func (*MockCommander) CurrentEnv Uses

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

func (*MockCommander) CurrentName Uses

func (mock *MockCommander) CurrentName() string

func (*MockCommander) DidError Uses

func (mock *MockCommander) DidError() bool

func (*MockCommander) DidFail Uses

func (mock *MockCommander) DidFail() bool

func (*MockCommander) Error Uses

func (mock *MockCommander) Error() error

func (*MockCommander) FailHandler Uses

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

func (*MockCommander) Run Uses

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

func (*MockCommander) RunWithoutRetry Uses

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

func (*MockCommander) SetArgs Uses

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

func (*MockCommander) SetDir Uses

func (mock *MockCommander) SetDir(_param0 string)

func (*MockCommander) SetEnv Uses

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

func (*MockCommander) SetEnvVariable Uses

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

func (*MockCommander) SetExponentialBackOff Uses

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

func (*MockCommander) SetFailHandler Uses

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

func (*MockCommander) SetName Uses

func (mock *MockCommander) SetName(_param0 string)

func (*MockCommander) SetTimeout Uses

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

func (*MockCommander) VerifyWasCalled Uses

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

func (*MockCommander) VerifyWasCalledEventually Uses

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

func (*MockCommander) VerifyWasCalledInOrder Uses

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

func (*MockCommander) VerifyWasCalledOnce Uses

func (mock *MockCommander) VerifyWasCalledOnce() *VerifierMockCommander

type MockCommander_CurrentArgs_OngoingVerification Uses

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

func (*MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_CurrentArgs_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_CurrentArgs_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentDir_OngoingVerification Uses

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

func (*MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_CurrentDir_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_CurrentDir_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentEnv_OngoingVerification Uses

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

func (*MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_CurrentEnv_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_CurrentEnv_OngoingVerification) GetCapturedArguments()

type MockCommander_CurrentName_OngoingVerification Uses

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

func (*MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_CurrentName_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_CurrentName_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_CurrentName_OngoingVerification) GetCapturedArguments()

type MockCommander_DidError_OngoingVerification Uses

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

func (*MockCommander_DidError_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_DidError_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidError_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_DidError_OngoingVerification) GetCapturedArguments()

type MockCommander_DidFail_OngoingVerification Uses

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

func (*MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_DidFail_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_DidFail_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_DidFail_OngoingVerification) GetCapturedArguments()

type MockCommander_Error_OngoingVerification Uses

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

func (*MockCommander_Error_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_Error_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Error_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_Error_OngoingVerification) GetCapturedArguments()

type MockCommander_RunWithoutRetry_OngoingVerification Uses

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

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_RunWithoutRetry_OngoingVerification) GetCapturedArguments()

type MockCommander_Run_OngoingVerification Uses

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

func (*MockCommander_Run_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_Run_OngoingVerification) GetAllCapturedArguments()

func (*MockCommander_Run_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_Run_OngoingVerification) GetCapturedArguments()

type MockCommander_SetArgs_OngoingVerification Uses

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

func (*MockCommander_SetArgs_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetArgs_OngoingVerification) GetCapturedArguments Uses

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

type MockCommander_SetDir_OngoingVerification Uses

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

func (*MockCommander_SetDir_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetDir_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_SetDir_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetEnvVariable_OngoingVerification Uses

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

func (*MockCommander_SetEnvVariable_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetEnvVariable_OngoingVerification) GetCapturedArguments Uses

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

type MockCommander_SetEnv_OngoingVerification Uses

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

func (*MockCommander_SetEnv_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetEnv_OngoingVerification) GetCapturedArguments Uses

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

type MockCommander_SetExponentialBackOff_OngoingVerification Uses

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

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments Uses

func (c *MockCommander_SetExponentialBackOff_OngoingVerification) GetAllCapturedArguments() (_param0 []*backoff.ExponentialBackOff)

func (*MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_SetExponentialBackOff_OngoingVerification) GetCapturedArguments() *backoff.ExponentialBackOff

type MockCommander_SetName_OngoingVerification Uses

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

func (*MockCommander_SetName_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetName_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_SetName_OngoingVerification) GetCapturedArguments() string

type MockCommander_SetTimeout_OngoingVerification Uses

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

func (*MockCommander_SetTimeout_OngoingVerification) GetAllCapturedArguments Uses

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

func (*MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments Uses

func (c *MockCommander_SetTimeout_OngoingVerification) GetCapturedArguments() time.Duration

type VerifierMockCommander Uses

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

func (*VerifierMockCommander) CurrentArgs Uses

func (verifier *VerifierMockCommander) CurrentArgs() *MockCommander_CurrentArgs_OngoingVerification

func (*VerifierMockCommander) CurrentDir Uses

func (verifier *VerifierMockCommander) CurrentDir() *MockCommander_CurrentDir_OngoingVerification

func (*VerifierMockCommander) CurrentEnv Uses

func (verifier *VerifierMockCommander) CurrentEnv() *MockCommander_CurrentEnv_OngoingVerification

func (*VerifierMockCommander) CurrentName Uses

func (verifier *VerifierMockCommander) CurrentName() *MockCommander_CurrentName_OngoingVerification

func (*VerifierMockCommander) DidError Uses

func (verifier *VerifierMockCommander) DidError() *MockCommander_DidError_OngoingVerification

func (*VerifierMockCommander) DidFail Uses

func (verifier *VerifierMockCommander) DidFail() *MockCommander_DidFail_OngoingVerification

func (*VerifierMockCommander) Error Uses

func (verifier *VerifierMockCommander) Error() *MockCommander_Error_OngoingVerification

func (*VerifierMockCommander) Run Uses

func (verifier *VerifierMockCommander) Run() *MockCommander_Run_OngoingVerification

func (*VerifierMockCommander) RunWithoutRetry Uses

func (verifier *VerifierMockCommander) RunWithoutRetry() *MockCommander_RunWithoutRetry_OngoingVerification

func (*VerifierMockCommander) SetArgs Uses

func (verifier *VerifierMockCommander) SetArgs(_param0 []string) *MockCommander_SetArgs_OngoingVerification

func (*VerifierMockCommander) SetDir Uses

func (verifier *VerifierMockCommander) SetDir(_param0 string) *MockCommander_SetDir_OngoingVerification

func (*VerifierMockCommander) SetEnv Uses

func (verifier *VerifierMockCommander) SetEnv(_param0 map[string]string) *MockCommander_SetEnv_OngoingVerification

func (*VerifierMockCommander) SetEnvVariable Uses

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

func (*VerifierMockCommander) SetExponentialBackOff Uses

func (verifier *VerifierMockCommander) SetExponentialBackOff(_param0 *backoff.ExponentialBackOff) *MockCommander_SetExponentialBackOff_OngoingVerification

func (*VerifierMockCommander) SetName Uses

func (verifier *VerifierMockCommander) SetName(_param0 string) *MockCommander_SetName_OngoingVerification

func (*VerifierMockCommander) SetTimeout Uses

func (verifier *VerifierMockCommander) SetTimeout(_param0 time.Duration) *MockCommander_SetTimeout_OngoingVerification

Package util_test imports 4 packages (graph). Updated 2019-10-18. Refresh now. Tools for package owners.