mocks

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAzureDevopsRequestValidator added in v0.10.0

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

func NewMockAzureDevopsRequestValidator added in v0.10.0

func NewMockAzureDevopsRequestValidator(options ...pegomock.Option) *MockAzureDevopsRequestValidator

func (*MockAzureDevopsRequestValidator) FailHandler added in v0.10.0

func (*MockAzureDevopsRequestValidator) SetFailHandler added in v0.10.0

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

func (*MockAzureDevopsRequestValidator) Validate added in v0.10.0

func (mock *MockAzureDevopsRequestValidator) Validate(r *http.Request, user []byte, pass []byte) ([]byte, error)

func (*MockAzureDevopsRequestValidator) VerifyWasCalled added in v0.10.0

func (mock *MockAzureDevopsRequestValidator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockAzureDevopsRequestValidator

func (*MockAzureDevopsRequestValidator) VerifyWasCalledEventually added in v0.10.0

func (mock *MockAzureDevopsRequestValidator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockAzureDevopsRequestValidator

func (*MockAzureDevopsRequestValidator) VerifyWasCalledInOrder added in v0.10.0

func (mock *MockAzureDevopsRequestValidator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockAzureDevopsRequestValidator

func (*MockAzureDevopsRequestValidator) VerifyWasCalledOnce added in v0.10.0

type MockAzureDevopsRequestValidator_Validate_OngoingVerification added in v0.10.0

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

func (*MockAzureDevopsRequestValidator_Validate_OngoingVerification) GetAllCapturedArguments added in v0.10.0

func (c *MockAzureDevopsRequestValidator_Validate_OngoingVerification) GetAllCapturedArguments() (_param0 []*http.Request, _param1 [][]byte, _param2 [][]byte)

func (*MockAzureDevopsRequestValidator_Validate_OngoingVerification) GetCapturedArguments added in v0.10.0

type MockGithubRequestValidator added in v0.2.0

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

func NewMockGithubRequestValidator added in v0.2.0

func NewMockGithubRequestValidator(options ...pegomock.Option) *MockGithubRequestValidator

func (*MockGithubRequestValidator) FailHandler added in v0.6.0

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

func (*MockGithubRequestValidator) SetFailHandler added in v0.6.0

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

func (*MockGithubRequestValidator) Validate added in v0.2.0

func (mock *MockGithubRequestValidator) Validate(r *http.Request, secret []byte) ([]byte, error)

func (*MockGithubRequestValidator) VerifyWasCalled added in v0.2.0

func (mock *MockGithubRequestValidator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockGithubRequestValidator

func (*MockGithubRequestValidator) VerifyWasCalledEventually added in v0.4.13

func (mock *MockGithubRequestValidator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockGithubRequestValidator

func (*MockGithubRequestValidator) VerifyWasCalledInOrder added in v0.2.0

func (mock *MockGithubRequestValidator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGithubRequestValidator

func (*MockGithubRequestValidator) VerifyWasCalledOnce added in v0.2.0

type MockGithubRequestValidator_Validate_OngoingVerification added in v0.8.3

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

func (*MockGithubRequestValidator_Validate_OngoingVerification) GetAllCapturedArguments added in v0.8.3

func (c *MockGithubRequestValidator_Validate_OngoingVerification) GetAllCapturedArguments() (_param0 []*http.Request, _param1 [][]byte)

func (*MockGithubRequestValidator_Validate_OngoingVerification) GetCapturedArguments added in v0.8.3

type MockGitlabRequestParserValidator added in v0.4.0

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

func NewMockGitlabRequestParserValidator added in v0.4.0

func NewMockGitlabRequestParserValidator(options ...pegomock.Option) *MockGitlabRequestParserValidator

func (*MockGitlabRequestParserValidator) FailHandler added in v0.6.0

func (*MockGitlabRequestParserValidator) ParseAndValidate added in v0.4.0

func (mock *MockGitlabRequestParserValidator) ParseAndValidate(r *http.Request, secret []byte) (interface{}, error)

func (*MockGitlabRequestParserValidator) SetFailHandler added in v0.6.0

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

func (*MockGitlabRequestParserValidator) VerifyWasCalled added in v0.4.0

func (mock *MockGitlabRequestParserValidator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockGitlabRequestParserValidator

func (*MockGitlabRequestParserValidator) VerifyWasCalledEventually added in v0.4.13

func (mock *MockGitlabRequestParserValidator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockGitlabRequestParserValidator

func (*MockGitlabRequestParserValidator) VerifyWasCalledInOrder added in v0.4.0

func (mock *MockGitlabRequestParserValidator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGitlabRequestParserValidator

func (*MockGitlabRequestParserValidator) VerifyWasCalledOnce added in v0.4.0

type MockGitlabRequestParserValidator_ParseAndValidate_OngoingVerification added in v0.8.3

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

func (*MockGitlabRequestParserValidator_ParseAndValidate_OngoingVerification) GetAllCapturedArguments added in v0.8.3

func (c *MockGitlabRequestParserValidator_ParseAndValidate_OngoingVerification) GetAllCapturedArguments() (_param0 []*http.Request, _param1 [][]byte)

func (*MockGitlabRequestParserValidator_ParseAndValidate_OngoingVerification) GetCapturedArguments added in v0.8.3

type MockTemplateWriter

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

func NewMockTemplateWriter

func NewMockTemplateWriter(options ...pegomock.Option) *MockTemplateWriter

func (*MockTemplateWriter) Execute

func (mock *MockTemplateWriter) Execute(wr io.Writer, data interface{}) error

func (*MockTemplateWriter) FailHandler added in v0.6.0

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

func (*MockTemplateWriter) SetFailHandler added in v0.6.0

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

func (*MockTemplateWriter) VerifyWasCalled

func (mock *MockTemplateWriter) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledEventually added in v0.4.13

func (mock *MockTemplateWriter) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledInOrder

func (mock *MockTemplateWriter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledOnce

func (mock *MockTemplateWriter) VerifyWasCalledOnce() *VerifierMockTemplateWriter

type MockTemplateWriter_Execute_OngoingVerification added in v0.8.3

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

func (*MockTemplateWriter_Execute_OngoingVerification) GetAllCapturedArguments added in v0.8.3

func (c *MockTemplateWriter_Execute_OngoingVerification) GetAllCapturedArguments() (_param0 []io.Writer, _param1 []interface{})

func (*MockTemplateWriter_Execute_OngoingVerification) GetCapturedArguments added in v0.8.3

func (c *MockTemplateWriter_Execute_OngoingVerification) GetCapturedArguments() (io.Writer, interface{})

type VerifierMockAzureDevopsRequestValidator added in v0.10.0

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

func (*VerifierMockAzureDevopsRequestValidator) Validate added in v0.10.0

type VerifierMockGithubRequestValidator added in v0.8.3

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

func (*VerifierMockGithubRequestValidator) Validate added in v0.8.3

type VerifierMockGitlabRequestParserValidator added in v0.8.3

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

func (*VerifierMockGitlabRequestParserValidator) ParseAndValidate added in v0.8.3

type VerifierMockTemplateWriter added in v0.8.3

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

func (*VerifierMockTemplateWriter) Execute added in v0.8.3

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