mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 Client_CreateComment_OngoingVerification

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

func (*Client_CreateComment_OngoingVerification) GetAllCapturedArguments

func (c *Client_CreateComment_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []int, _param2 []string)

func (*Client_CreateComment_OngoingVerification) GetCapturedArguments

func (c *Client_CreateComment_OngoingVerification) GetCapturedArguments() (models.Repo, int, string)

type Client_GetModifiedFiles_OngoingVerification

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

func (*Client_GetModifiedFiles_OngoingVerification) GetAllCapturedArguments

func (c *Client_GetModifiedFiles_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)

func (*Client_GetModifiedFiles_OngoingVerification) GetCapturedArguments

type Client_MergePull_OngoingVerification added in v0.5.0

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

func (*Client_MergePull_OngoingVerification) GetAllCapturedArguments added in v0.5.0

func (c *Client_MergePull_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest)

func (*Client_MergePull_OngoingVerification) GetCapturedArguments added in v0.5.0

func (c *Client_MergePull_OngoingVerification) GetCapturedArguments() models.PullRequest

type Client_PullIsApproved_OngoingVerification

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

func (*Client_PullIsApproved_OngoingVerification) GetAllCapturedArguments

func (c *Client_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)

func (*Client_PullIsApproved_OngoingVerification) GetCapturedArguments

type Client_PullIsMergeable_OngoingVerification added in v0.4.13

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

func (*Client_PullIsMergeable_OngoingVerification) GetAllCapturedArguments added in v0.4.13

func (c *Client_PullIsMergeable_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)

func (*Client_PullIsMergeable_OngoingVerification) GetCapturedArguments added in v0.4.13

type Client_UpdateStatus_OngoingVerification

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

func (*Client_UpdateStatus_OngoingVerification) GetAllCapturedArguments

func (c *Client_UpdateStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest, _param2 []models.CommitStatus, _param3 []string, _param4 []string, _param5 []string)

func (*Client_UpdateStatus_OngoingVerification) GetCapturedArguments

type MockClient

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

func NewMockClient

func NewMockClient(options ...pegomock.Option) *MockClient

func (*MockClient) CreateComment

func (mock *MockClient) CreateComment(repo models.Repo, pullNum int, comment string) error

func (*MockClient) FailHandler added in v0.6.0

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

func (*MockClient) GetModifiedFiles

func (mock *MockClient) GetModifiedFiles(repo models.Repo, pull models.PullRequest) ([]string, error)

func (*MockClient) MergePull added in v0.5.0

func (mock *MockClient) MergePull(pull models.PullRequest) error

func (*MockClient) PullIsApproved

func (mock *MockClient) PullIsApproved(repo models.Repo, pull models.PullRequest) (bool, error)

func (*MockClient) PullIsMergeable added in v0.4.13

func (mock *MockClient) PullIsMergeable(repo models.Repo, pull models.PullRequest) (bool, error)

func (*MockClient) SetFailHandler added in v0.6.0

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

func (*MockClient) UpdateStatus

func (mock *MockClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, src string, description string, url string) error

func (*MockClient) VerifyWasCalled

func (mock *MockClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierClient

func (*MockClient) VerifyWasCalledEventually added in v0.4.13

func (mock *MockClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierClient

func (*MockClient) VerifyWasCalledInOrder

func (mock *MockClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierClient

func (*MockClient) VerifyWasCalledOnce

func (mock *MockClient) VerifyWasCalledOnce() *VerifierClient

type VerifierClient

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

func (*VerifierClient) CreateComment

func (verifier *VerifierClient) CreateComment(repo models.Repo, pullNum int, comment string) *Client_CreateComment_OngoingVerification

func (*VerifierClient) GetModifiedFiles

func (*VerifierClient) MergePull added in v0.5.0

func (*VerifierClient) PullIsApproved

func (*VerifierClient) PullIsMergeable added in v0.4.13

func (*VerifierClient) UpdateStatus

func (verifier *VerifierClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, src string, description string, url string) *Client_UpdateStatus_OngoingVerification

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