Documentation ¶
Index ¶
- type MockPullApprovedChecker
- func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler
- func (mock *MockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) (bool, error)
- func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockPullApprovedChecker) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, ...) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledOnce() *VerifierMockPullApprovedChecker
- type MockPullApprovedChecker_PullIsApproved_OngoingVerification
- type VerifierMockPullApprovedChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPullApprovedChecker ¶
type MockPullApprovedChecker struct {
// contains filtered or unexported fields
}
func NewMockPullApprovedChecker ¶
func NewMockPullApprovedChecker(options ...pegomock.Option) *MockPullApprovedChecker
func (*MockPullApprovedChecker) FailHandler ¶ added in v0.6.0
func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler
func (*MockPullApprovedChecker) PullIsApproved ¶
func (mock *MockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) (bool, error)
func (*MockPullApprovedChecker) SetFailHandler ¶ added in v0.6.0
func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler)
func (*MockPullApprovedChecker) VerifyWasCalled ¶
func (mock *MockPullApprovedChecker) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockPullApprovedChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledInOrder ¶
func (mock *MockPullApprovedChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledOnce ¶
func (mock *MockPullApprovedChecker) VerifyWasCalledOnce() *VerifierMockPullApprovedChecker
type MockPullApprovedChecker_PullIsApproved_OngoingVerification ¶ added in v0.8.3
type MockPullApprovedChecker_PullIsApproved_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type VerifierMockPullApprovedChecker ¶ added in v0.8.3
type VerifierMockPullApprovedChecker struct {
// contains filtered or unexported fields
}
func (*VerifierMockPullApprovedChecker) PullIsApproved ¶ added in v0.8.3
func (verifier *VerifierMockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) *MockPullApprovedChecker_PullIsApproved_OngoingVerification
Click to show internal directories.
Click to hide internal directories.