Documentation ¶
Index ¶
- type MockClient
- func (mock *MockClient) CreateComment(repo models.Repo, pullNum int, comment string, command string) error
- func (mock *MockClient) FailHandler() pegomock.FailHandler
- func (mock *MockClient) GetModifiedFiles(repo models.Repo, pull models.PullRequest) ([]string, error)
- func (mock *MockClient) HidePrevPlanComments(repo models.Repo, pullNum int) error
- func (mock *MockClient) MarkdownPullLink(pull models.PullRequest) (string, error)
- func (mock *MockClient) MergePull(pull models.PullRequest) error
- func (mock *MockClient) PullIsApproved(repo models.Repo, pull models.PullRequest) (bool, error)
- func (mock *MockClient) PullIsMergeable(repo models.Repo, pull models.PullRequest) (bool, error)
- func (mock *MockClient) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, ...) error
- func (mock *MockClient) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledOnce() *VerifierMockClient
- type MockClient_CreateComment_OngoingVerification
- type MockClient_GetModifiedFiles_OngoingVerification
- type MockClient_HidePrevPlanComments_OngoingVerification
- type MockClient_MarkdownPullLink_OngoingVerification
- type MockClient_MergePull_OngoingVerification
- type MockClient_PullIsApproved_OngoingVerification
- type MockClient_PullIsMergeable_OngoingVerification
- type MockClient_UpdateStatus_OngoingVerification
- type VerifierMockClient
- func (verifier *VerifierMockClient) CreateComment(repo models.Repo, pullNum int, comment string, command string) *MockClient_CreateComment_OngoingVerification
- func (verifier *VerifierMockClient) GetModifiedFiles(repo models.Repo, pull models.PullRequest) *MockClient_GetModifiedFiles_OngoingVerification
- func (verifier *VerifierMockClient) HidePrevPlanComments(repo models.Repo, pullNum int) *MockClient_HidePrevPlanComments_OngoingVerification
- func (verifier *VerifierMockClient) MarkdownPullLink(pull models.PullRequest) *MockClient_MarkdownPullLink_OngoingVerification
- func (verifier *VerifierMockClient) MergePull(pull models.PullRequest) *MockClient_MergePull_OngoingVerification
- func (verifier *VerifierMockClient) PullIsApproved(repo models.Repo, pull models.PullRequest) *MockClient_PullIsApproved_OngoingVerification
- func (verifier *VerifierMockClient) PullIsMergeable(repo models.Repo, pull models.PullRequest) *MockClient_PullIsMergeable_OngoingVerification
- func (verifier *VerifierMockClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, ...) *MockClient_UpdateStatus_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient(options ...pegomock.Option) *MockClient
func (*MockClient) CreateComment ¶
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) HidePrevPlanComments ¶ added in v0.12.0
func (mock *MockClient) HidePrevPlanComments(repo models.Repo, pullNum int) error
func (*MockClient) MarkdownPullLink ¶ added in v0.13.0
func (mock *MockClient) MarkdownPullLink(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) *VerifierMockClient
func (*MockClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockClient
func (*MockClient) VerifyWasCalledInOrder ¶
func (mock *MockClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockClient
func (*MockClient) VerifyWasCalledOnce ¶
func (mock *MockClient) VerifyWasCalledOnce() *VerifierMockClient
type MockClient_CreateComment_OngoingVerification ¶ added in v0.8.3
type MockClient_CreateComment_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_CreateComment_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (*MockClient_CreateComment_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
type MockClient_GetModifiedFiles_OngoingVerification ¶ added in v0.8.3
type MockClient_GetModifiedFiles_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_GetModifiedFiles_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockClient_GetModifiedFiles_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockClient_GetModifiedFiles_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_GetModifiedFiles_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type MockClient_HidePrevPlanComments_OngoingVerification ¶ added in v0.13.0
type MockClient_HidePrevPlanComments_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_HidePrevPlanComments_OngoingVerification) GetAllCapturedArguments ¶ added in v0.13.0
func (c *MockClient_HidePrevPlanComments_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []int)
func (*MockClient_HidePrevPlanComments_OngoingVerification) GetCapturedArguments ¶ added in v0.13.0
func (c *MockClient_HidePrevPlanComments_OngoingVerification) GetCapturedArguments() (models.Repo, int)
type MockClient_MarkdownPullLink_OngoingVerification ¶ added in v0.13.0
type MockClient_MarkdownPullLink_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_MarkdownPullLink_OngoingVerification) GetAllCapturedArguments ¶ added in v0.13.0
func (c *MockClient_MarkdownPullLink_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest)
func (*MockClient_MarkdownPullLink_OngoingVerification) GetCapturedArguments ¶ added in v0.13.0
func (c *MockClient_MarkdownPullLink_OngoingVerification) GetCapturedArguments() models.PullRequest
type MockClient_MergePull_OngoingVerification ¶ added in v0.8.3
type MockClient_MergePull_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_MergePull_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockClient_MergePull_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PullRequest)
func (*MockClient_MergePull_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_MergePull_OngoingVerification) GetCapturedArguments() models.PullRequest
type MockClient_PullIsApproved_OngoingVerification ¶ added in v0.8.3
type MockClient_PullIsApproved_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_PullIsApproved_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockClient_PullIsApproved_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsApproved_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type MockClient_PullIsMergeable_OngoingVerification ¶ added in v0.8.3
type MockClient_PullIsMergeable_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_PullIsMergeable_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsMergeable_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockClient_PullIsMergeable_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsMergeable_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type MockClient_UpdateStatus_OngoingVerification ¶ added in v0.8.3
type MockClient_UpdateStatus_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_UpdateStatus_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockClient_UpdateStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest, _param2 []models.CommitStatus, _param3 []string, _param4 []string, _param5 []string)
func (*MockClient_UpdateStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_UpdateStatus_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest, models.CommitStatus, string, string, string)
type VerifierMockClient ¶ added in v0.8.3
type VerifierMockClient struct {
// contains filtered or unexported fields
}
func (*VerifierMockClient) CreateComment ¶ added in v0.8.3
func (verifier *VerifierMockClient) CreateComment(repo models.Repo, pullNum int, comment string, command string) *MockClient_CreateComment_OngoingVerification
func (*VerifierMockClient) GetModifiedFiles ¶ added in v0.8.3
func (verifier *VerifierMockClient) GetModifiedFiles(repo models.Repo, pull models.PullRequest) *MockClient_GetModifiedFiles_OngoingVerification
func (*VerifierMockClient) HidePrevPlanComments ¶ added in v0.13.0
func (verifier *VerifierMockClient) HidePrevPlanComments(repo models.Repo, pullNum int) *MockClient_HidePrevPlanComments_OngoingVerification
func (*VerifierMockClient) MarkdownPullLink ¶ added in v0.13.0
func (verifier *VerifierMockClient) MarkdownPullLink(pull models.PullRequest) *MockClient_MarkdownPullLink_OngoingVerification
func (*VerifierMockClient) MergePull ¶ added in v0.8.3
func (verifier *VerifierMockClient) MergePull(pull models.PullRequest) *MockClient_MergePull_OngoingVerification
func (*VerifierMockClient) PullIsApproved ¶ added in v0.8.3
func (verifier *VerifierMockClient) PullIsApproved(repo models.Repo, pull models.PullRequest) *MockClient_PullIsApproved_OngoingVerification
func (*VerifierMockClient) PullIsMergeable ¶ added in v0.8.3
func (verifier *VerifierMockClient) PullIsMergeable(repo models.Repo, pull models.PullRequest) *MockClient_PullIsMergeable_OngoingVerification
func (*VerifierMockClient) UpdateStatus ¶ added in v0.8.3
func (verifier *VerifierMockClient) UpdateStatus(repo models.Repo, pull models.PullRequest, state models.CommitStatus, src string, description string, url string) *MockClient_UpdateStatus_OngoingVerification
Click to show internal directories.
Click to hide internal directories.