Documentation ¶
Index ¶
- type MockClient
- func (mock *MockClient) CreateComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, comment string, ...) error
- func (mock *MockClient) DiscardReviews(repo models.Repo, pull models.PullRequest) error
- func (mock *MockClient) FailHandler() pegomock.FailHandler
- func (mock *MockClient) GetCloneURL(logger logging.SimpleLogging, VCSHostType models.VCSHostType, repo string) (string, error)
- func (mock *MockClient) GetFileContent(logger logging.SimpleLogging, pull models.PullRequest, fileName string) (bool, []byte, error)
- func (mock *MockClient) GetModifiedFiles(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) ([]string, error)
- func (mock *MockClient) GetPullLabels(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) ([]string, error)
- func (mock *MockClient) GetTeamNamesForUser(repo models.Repo, user models.User) ([]string, error)
- func (mock *MockClient) HidePrevCommandComments(logger logging.SimpleLogging, repo models.Repo, pullNum int, command string, ...) error
- func (mock *MockClient) MarkdownPullLink(pull models.PullRequest) (string, error)
- func (mock *MockClient) MergePull(logger logging.SimpleLogging, pull models.PullRequest, ...) error
- func (mock *MockClient) PullIsApproved(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) (models.ApprovalStatus, error)
- func (mock *MockClient) PullIsMergeable(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, ...) (bool, error)
- func (mock *MockClient) ReactToComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, commentID int64, ...) error
- func (mock *MockClient) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockClient) SupportsSingleFileDownload(repo models.Repo) bool
- func (mock *MockClient) UpdateStatus(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, ...) error
- func (mock *MockClient) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockClient
- func (mock *MockClient) VerifyWasCalledOnce() *VerifierMockClient
- type MockClient_CreateComment_OngoingVerification
- type MockClient_DiscardReviews_OngoingVerification
- type MockClient_GetCloneURL_OngoingVerification
- type MockClient_GetFileContent_OngoingVerification
- type MockClient_GetModifiedFiles_OngoingVerification
- type MockClient_GetPullLabels_OngoingVerification
- type MockClient_GetTeamNamesForUser_OngoingVerification
- type MockClient_HidePrevCommandComments_OngoingVerification
- func (c *MockClient_HidePrevCommandComments_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int, ...)
- func (c *MockClient_HidePrevCommandComments_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int, string, string)
- type MockClient_MarkdownPullLink_OngoingVerification
- type MockClient_MergePull_OngoingVerification
- type MockClient_PullIsApproved_OngoingVerification
- type MockClient_PullIsMergeable_OngoingVerification
- type MockClient_ReactToComment_OngoingVerification
- type MockClient_SupportsSingleFileDownload_OngoingVerification
- type MockClient_UpdateStatus_OngoingVerification
- func (c *MockClient_UpdateStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, ...)
- func (c *MockClient_UpdateStatus_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, models.CommitStatus, ...)
- type MockGithubCredentials
- func (mock *MockGithubCredentials) Client() (*http.Client, error)
- func (mock *MockGithubCredentials) FailHandler() pegomock.FailHandler
- func (mock *MockGithubCredentials) GetToken() (string, error)
- func (mock *MockGithubCredentials) GetUser() (string, error)
- func (mock *MockGithubCredentials) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockGithubCredentials) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockGithubCredentials
- func (mock *MockGithubCredentials) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockGithubCredentials
- func (mock *MockGithubCredentials) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockGithubCredentials
- func (mock *MockGithubCredentials) VerifyWasCalledOnce() *VerifierMockGithubCredentials
- type MockGithubCredentials_Client_OngoingVerification
- type MockGithubCredentials_GetToken_OngoingVerification
- type MockGithubCredentials_GetUser_OngoingVerification
- type MockGithubPullRequestGetter
- func (mock *MockGithubPullRequestGetter) FailHandler() pegomock.FailHandler
- func (mock *MockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) (*github.PullRequest, error)
- func (mock *MockGithubPullRequestGetter) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockGithubPullRequestGetter) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockGithubPullRequestGetter
- func (mock *MockGithubPullRequestGetter) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockGithubPullRequestGetter
- func (mock *MockGithubPullRequestGetter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockGithubPullRequestGetter
- func (mock *MockGithubPullRequestGetter) VerifyWasCalledOnce() *VerifierMockGithubPullRequestGetter
- type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification
- func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int)
- func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int)
- type MockPullReqStatusFetcher
- func (mock *MockPullReqStatusFetcher) FailHandler() pegomock.FailHandler
- func (mock *MockPullReqStatusFetcher) FetchPullStatus(logger logging.SimpleLogging, pull models.PullRequest) (models.PullReqStatus, error)
- func (mock *MockPullReqStatusFetcher) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockPullReqStatusFetcher) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPullReqStatusFetcher
- func (mock *MockPullReqStatusFetcher) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPullReqStatusFetcher
- func (mock *MockPullReqStatusFetcher) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockPullReqStatusFetcher
- func (mock *MockPullReqStatusFetcher) VerifyWasCalledOnce() *VerifierMockPullReqStatusFetcher
- type MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification
- type VerifierMockClient
- func (verifier *VerifierMockClient) CreateComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, comment string, ...) *MockClient_CreateComment_OngoingVerification
- func (verifier *VerifierMockClient) DiscardReviews(repo models.Repo, pull models.PullRequest) *MockClient_DiscardReviews_OngoingVerification
- func (verifier *VerifierMockClient) GetCloneURL(logger logging.SimpleLogging, VCSHostType models.VCSHostType, repo string) *MockClient_GetCloneURL_OngoingVerification
- func (verifier *VerifierMockClient) GetFileContent(logger logging.SimpleLogging, pull models.PullRequest, fileName string) *MockClient_GetFileContent_OngoingVerification
- func (verifier *VerifierMockClient) GetModifiedFiles(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_GetModifiedFiles_OngoingVerification
- func (verifier *VerifierMockClient) GetPullLabels(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_GetPullLabels_OngoingVerification
- func (verifier *VerifierMockClient) GetTeamNamesForUser(repo models.Repo, user models.User) *MockClient_GetTeamNamesForUser_OngoingVerification
- func (verifier *VerifierMockClient) HidePrevCommandComments(logger logging.SimpleLogging, repo models.Repo, pullNum int, command string, ...) *MockClient_HidePrevCommandComments_OngoingVerification
- func (verifier *VerifierMockClient) MarkdownPullLink(pull models.PullRequest) *MockClient_MarkdownPullLink_OngoingVerification
- func (verifier *VerifierMockClient) MergePull(logger logging.SimpleLogging, pull models.PullRequest, ...) *MockClient_MergePull_OngoingVerification
- func (verifier *VerifierMockClient) PullIsApproved(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_PullIsApproved_OngoingVerification
- func (verifier *VerifierMockClient) PullIsMergeable(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, ...) *MockClient_PullIsMergeable_OngoingVerification
- func (verifier *VerifierMockClient) ReactToComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, commentID int64, ...) *MockClient_ReactToComment_OngoingVerification
- func (verifier *VerifierMockClient) SupportsSingleFileDownload(repo models.Repo) *MockClient_SupportsSingleFileDownload_OngoingVerification
- func (verifier *VerifierMockClient) UpdateStatus(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, ...) *MockClient_UpdateStatus_OngoingVerification
- type VerifierMockGithubCredentials
- func (verifier *VerifierMockGithubCredentials) Client() *MockGithubCredentials_Client_OngoingVerification
- func (verifier *VerifierMockGithubCredentials) GetToken() *MockGithubCredentials_GetToken_OngoingVerification
- func (verifier *VerifierMockGithubCredentials) GetUser() *MockGithubCredentials_GetUser_OngoingVerification
- type VerifierMockGithubPullRequestGetter
- type VerifierMockPullReqStatusFetcher
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 (mock *MockClient) CreateComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, comment string, command string) error
func (*MockClient) DiscardReviews ¶ added in v0.22.0
func (mock *MockClient) DiscardReviews(repo models.Repo, pull models.PullRequest) error
func (*MockClient) FailHandler ¶ added in v0.6.0
func (mock *MockClient) FailHandler() pegomock.FailHandler
func (*MockClient) GetCloneURL ¶ added in v0.19.8
func (mock *MockClient) GetCloneURL(logger logging.SimpleLogging, VCSHostType models.VCSHostType, repo string) (string, error)
func (*MockClient) GetFileContent ¶ added in v0.22.0
func (mock *MockClient) GetFileContent(logger logging.SimpleLogging, pull models.PullRequest, fileName string) (bool, []byte, error)
func (*MockClient) GetModifiedFiles ¶
func (mock *MockClient) GetModifiedFiles(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) ([]string, error)
func (*MockClient) GetPullLabels ¶ added in v0.26.0
func (mock *MockClient) GetPullLabels(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) ([]string, error)
func (*MockClient) GetTeamNamesForUser ¶ added in v0.18.0
func (*MockClient) HidePrevCommandComments ¶ added in v0.17.1
func (mock *MockClient) HidePrevCommandComments(logger logging.SimpleLogging, repo models.Repo, pullNum int, command string, dir string) 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(logger logging.SimpleLogging, pull models.PullRequest, pullOptions models.PullRequestOptions) error
func (*MockClient) PullIsApproved ¶
func (mock *MockClient) PullIsApproved(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) (models.ApprovalStatus, error)
func (*MockClient) PullIsMergeable ¶ added in v0.4.13
func (mock *MockClient) PullIsMergeable(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, vcsstatusname string, ignoreVCSStatusNames []string) (bool, error)
func (*MockClient) ReactToComment ¶ added in v0.24.0
func (mock *MockClient) ReactToComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, commentID int64, reaction string) error
func (*MockClient) SetFailHandler ¶ added in v0.6.0
func (mock *MockClient) SetFailHandler(fh pegomock.FailHandler)
func (*MockClient) SupportsSingleFileDownload ¶ added in v0.15.0
func (mock *MockClient) SupportsSingleFileDownload(repo models.Repo) bool
func (*MockClient) UpdateStatus ¶
func (mock *MockClient) UpdateStatus(logger logging.SimpleLogging, 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.InvocationCountMatcher) *VerifierMockClient
func (*MockClient) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockClient) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockClient
func (*MockClient) VerifyWasCalledInOrder ¶
func (mock *MockClient) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, 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 (c *MockClient_CreateComment_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int, _param3 []string, _param4 []string)
func (*MockClient_CreateComment_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_CreateComment_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int, string, string)
type MockClient_DiscardReviews_OngoingVerification ¶ added in v0.22.0
type MockClient_DiscardReviews_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_DiscardReviews_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.0
func (c *MockClient_DiscardReviews_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockClient_DiscardReviews_OngoingVerification) GetCapturedArguments ¶ added in v0.22.0
func (c *MockClient_DiscardReviews_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type MockClient_GetCloneURL_OngoingVerification ¶ added in v0.22.0
type MockClient_GetCloneURL_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_GetCloneURL_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetCloneURL_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.VCSHostType, _param2 []string)
func (*MockClient_GetCloneURL_OngoingVerification) GetCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetCloneURL_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.VCSHostType, string)
type MockClient_GetFileContent_OngoingVerification ¶ added in v0.22.0
type MockClient_GetFileContent_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_GetFileContent_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetFileContent_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.PullRequest, _param2 []string)
func (*MockClient_GetFileContent_OngoingVerification) GetCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetFileContent_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.PullRequest, string)
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 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest)
func (*MockClient_GetModifiedFiles_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_GetModifiedFiles_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest)
type MockClient_GetPullLabels_OngoingVerification ¶ added in v0.26.0
type MockClient_GetPullLabels_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_GetPullLabels_OngoingVerification) GetAllCapturedArguments ¶ added in v0.26.0
func (c *MockClient_GetPullLabels_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest)
func (*MockClient_GetPullLabels_OngoingVerification) GetCapturedArguments ¶ added in v0.26.0
func (c *MockClient_GetPullLabels_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest)
type MockClient_GetTeamNamesForUser_OngoingVerification ¶ added in v0.18.0
type MockClient_GetTeamNamesForUser_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_GetTeamNamesForUser_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetTeamNamesForUser_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.User)
func (*MockClient_GetTeamNamesForUser_OngoingVerification) GetCapturedArguments ¶ added in v0.22.0
func (c *MockClient_GetTeamNamesForUser_OngoingVerification) GetCapturedArguments() (models.Repo, models.User)
type MockClient_HidePrevCommandComments_OngoingVerification ¶ added in v0.17.1
type MockClient_HidePrevCommandComments_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_HidePrevCommandComments_OngoingVerification) GetAllCapturedArguments ¶ added in v0.17.1
func (c *MockClient_HidePrevCommandComments_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int, _param3 []string, _param4 []string)
func (*MockClient_HidePrevCommandComments_OngoingVerification) GetCapturedArguments ¶ added in v0.17.1
func (c *MockClient_HidePrevCommandComments_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int, string, string)
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 []logging.SimpleLogging, _param1 []models.PullRequest, _param2 []models.PullRequestOptions)
func (*MockClient_MergePull_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_MergePull_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.PullRequest, models.PullRequestOptions)
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 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest)
func (*MockClient_PullIsApproved_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsApproved_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, 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 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []string, _param4 [][]string)
func (*MockClient_PullIsMergeable_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_PullIsMergeable_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, string, []string)
type MockClient_ReactToComment_OngoingVerification ¶ added in v0.24.0
type MockClient_ReactToComment_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_ReactToComment_OngoingVerification) GetAllCapturedArguments ¶ added in v0.24.0
func (c *MockClient_ReactToComment_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int, _param3 []int64, _param4 []string)
func (*MockClient_ReactToComment_OngoingVerification) GetCapturedArguments ¶ added in v0.24.0
func (c *MockClient_ReactToComment_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int, int64, string)
type MockClient_SupportsSingleFileDownload_OngoingVerification ¶ added in v0.15.0
type MockClient_SupportsSingleFileDownload_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockClient_SupportsSingleFileDownload_OngoingVerification) GetAllCapturedArguments ¶ added in v0.15.0
func (c *MockClient_SupportsSingleFileDownload_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo)
func (*MockClient_SupportsSingleFileDownload_OngoingVerification) GetCapturedArguments ¶ added in v0.15.0
func (c *MockClient_SupportsSingleFileDownload_OngoingVerification) GetCapturedArguments() models.Repo
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 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest, _param3 []models.CommitStatus, _param4 []string, _param5 []string, _param6 []string)
func (*MockClient_UpdateStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockClient_UpdateStatus_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest, models.CommitStatus, string, string, string)
type MockGithubCredentials ¶ added in v0.15.1
type MockGithubCredentials struct {
// contains filtered or unexported fields
}
func NewMockGithubCredentials ¶ added in v0.15.1
func NewMockGithubCredentials(options ...pegomock.Option) *MockGithubCredentials
func (*MockGithubCredentials) Client ¶ added in v0.15.1
func (mock *MockGithubCredentials) Client() (*http.Client, error)
func (*MockGithubCredentials) FailHandler ¶ added in v0.15.1
func (mock *MockGithubCredentials) FailHandler() pegomock.FailHandler
func (*MockGithubCredentials) GetToken ¶ added in v0.15.1
func (mock *MockGithubCredentials) GetToken() (string, error)
func (*MockGithubCredentials) GetUser ¶ added in v0.15.1
func (mock *MockGithubCredentials) GetUser() (string, error)
func (*MockGithubCredentials) SetFailHandler ¶ added in v0.15.1
func (mock *MockGithubCredentials) SetFailHandler(fh pegomock.FailHandler)
func (*MockGithubCredentials) VerifyWasCalled ¶ added in v0.15.1
func (mock *MockGithubCredentials) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockGithubCredentials
func (*MockGithubCredentials) VerifyWasCalledEventually ¶ added in v0.15.1
func (mock *MockGithubCredentials) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockGithubCredentials
func (*MockGithubCredentials) VerifyWasCalledInOrder ¶ added in v0.15.1
func (mock *MockGithubCredentials) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGithubCredentials
func (*MockGithubCredentials) VerifyWasCalledOnce ¶ added in v0.15.1
func (mock *MockGithubCredentials) VerifyWasCalledOnce() *VerifierMockGithubCredentials
type MockGithubCredentials_Client_OngoingVerification ¶ added in v0.15.1
type MockGithubCredentials_Client_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockGithubCredentials_Client_OngoingVerification) GetAllCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_Client_OngoingVerification) GetAllCapturedArguments()
func (*MockGithubCredentials_Client_OngoingVerification) GetCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_Client_OngoingVerification) GetCapturedArguments()
type MockGithubCredentials_GetToken_OngoingVerification ¶ added in v0.15.1
type MockGithubCredentials_GetToken_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockGithubCredentials_GetToken_OngoingVerification) GetAllCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_GetToken_OngoingVerification) GetAllCapturedArguments()
func (*MockGithubCredentials_GetToken_OngoingVerification) GetCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_GetToken_OngoingVerification) GetCapturedArguments()
type MockGithubCredentials_GetUser_OngoingVerification ¶ added in v0.15.1
type MockGithubCredentials_GetUser_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockGithubCredentials_GetUser_OngoingVerification) GetAllCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_GetUser_OngoingVerification) GetAllCapturedArguments()
func (*MockGithubCredentials_GetUser_OngoingVerification) GetCapturedArguments ¶ added in v0.15.1
func (c *MockGithubCredentials_GetUser_OngoingVerification) GetCapturedArguments()
type MockGithubPullRequestGetter ¶ added in v0.22.0
type MockGithubPullRequestGetter struct {
// contains filtered or unexported fields
}
func NewMockGithubPullRequestGetter ¶ added in v0.22.0
func NewMockGithubPullRequestGetter(options ...pegomock.Option) *MockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) FailHandler ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) FailHandler() pegomock.FailHandler
func (*MockGithubPullRequestGetter) GetPullRequest ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) (*github.PullRequest, error)
func (*MockGithubPullRequestGetter) SetFailHandler ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) SetFailHandler(fh pegomock.FailHandler)
func (*MockGithubPullRequestGetter) VerifyWasCalled ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledEventually ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledInOrder ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledOnce ¶ added in v0.22.0
func (mock *MockGithubPullRequestGetter) VerifyWasCalledOnce() *VerifierMockGithubPullRequestGetter
type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification ¶ added in v0.22.0
type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.0
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int)
func (*MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments ¶ added in v0.22.0
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int)
type MockPullReqStatusFetcher ¶ added in v0.22.3
type MockPullReqStatusFetcher struct {
// contains filtered or unexported fields
}
func NewMockPullReqStatusFetcher ¶ added in v0.22.3
func NewMockPullReqStatusFetcher(options ...pegomock.Option) *MockPullReqStatusFetcher
func (*MockPullReqStatusFetcher) FailHandler ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) FailHandler() pegomock.FailHandler
func (*MockPullReqStatusFetcher) FetchPullStatus ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) FetchPullStatus(logger logging.SimpleLogging, pull models.PullRequest) (models.PullReqStatus, error)
func (*MockPullReqStatusFetcher) SetFailHandler ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) SetFailHandler(fh pegomock.FailHandler)
func (*MockPullReqStatusFetcher) VerifyWasCalled ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPullReqStatusFetcher
func (*MockPullReqStatusFetcher) VerifyWasCalledEventually ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPullReqStatusFetcher
func (*MockPullReqStatusFetcher) VerifyWasCalledInOrder ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockPullReqStatusFetcher
func (*MockPullReqStatusFetcher) VerifyWasCalledOnce ¶ added in v0.22.3
func (mock *MockPullReqStatusFetcher) VerifyWasCalledOnce() *VerifierMockPullReqStatusFetcher
type MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification ¶ added in v0.22.3
type MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification) GetAllCapturedArguments ¶ added in v0.22.3
func (c *MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.PullRequest)
func (*MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification) GetCapturedArguments ¶ added in v0.22.3
func (c *MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.PullRequest)
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(logger logging.SimpleLogging, repo models.Repo, pullNum int, comment string, command string) *MockClient_CreateComment_OngoingVerification
func (*VerifierMockClient) DiscardReviews ¶ added in v0.22.0
func (verifier *VerifierMockClient) DiscardReviews(repo models.Repo, pull models.PullRequest) *MockClient_DiscardReviews_OngoingVerification
func (*VerifierMockClient) GetCloneURL ¶ added in v0.22.0
func (verifier *VerifierMockClient) GetCloneURL(logger logging.SimpleLogging, VCSHostType models.VCSHostType, repo string) *MockClient_GetCloneURL_OngoingVerification
func (*VerifierMockClient) GetFileContent ¶ added in v0.22.0
func (verifier *VerifierMockClient) GetFileContent(logger logging.SimpleLogging, pull models.PullRequest, fileName string) *MockClient_GetFileContent_OngoingVerification
func (*VerifierMockClient) GetModifiedFiles ¶ added in v0.8.3
func (verifier *VerifierMockClient) GetModifiedFiles(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_GetModifiedFiles_OngoingVerification
func (*VerifierMockClient) GetPullLabels ¶ added in v0.26.0
func (verifier *VerifierMockClient) GetPullLabels(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_GetPullLabels_OngoingVerification
func (*VerifierMockClient) GetTeamNamesForUser ¶ added in v0.18.0
func (verifier *VerifierMockClient) GetTeamNamesForUser(repo models.Repo, user models.User) *MockClient_GetTeamNamesForUser_OngoingVerification
func (*VerifierMockClient) HidePrevCommandComments ¶ added in v0.17.1
func (verifier *VerifierMockClient) HidePrevCommandComments(logger logging.SimpleLogging, repo models.Repo, pullNum int, command string, dir string) *MockClient_HidePrevCommandComments_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(logger logging.SimpleLogging, pull models.PullRequest, pullOptions models.PullRequestOptions) *MockClient_MergePull_OngoingVerification
func (*VerifierMockClient) PullIsApproved ¶ added in v0.8.3
func (verifier *VerifierMockClient) PullIsApproved(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest) *MockClient_PullIsApproved_OngoingVerification
func (*VerifierMockClient) PullIsMergeable ¶ added in v0.8.3
func (verifier *VerifierMockClient) PullIsMergeable(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, vcsstatusname string, ignoreVCSStatusNames []string) *MockClient_PullIsMergeable_OngoingVerification
func (*VerifierMockClient) ReactToComment ¶ added in v0.24.0
func (verifier *VerifierMockClient) ReactToComment(logger logging.SimpleLogging, repo models.Repo, pullNum int, commentID int64, reaction string) *MockClient_ReactToComment_OngoingVerification
func (*VerifierMockClient) SupportsSingleFileDownload ¶ added in v0.15.0
func (verifier *VerifierMockClient) SupportsSingleFileDownload(repo models.Repo) *MockClient_SupportsSingleFileDownload_OngoingVerification
func (*VerifierMockClient) UpdateStatus ¶ added in v0.8.3
func (verifier *VerifierMockClient) UpdateStatus(logger logging.SimpleLogging, repo models.Repo, pull models.PullRequest, state models.CommitStatus, src string, description string, url string) *MockClient_UpdateStatus_OngoingVerification
type VerifierMockGithubCredentials ¶ added in v0.15.1
type VerifierMockGithubCredentials struct {
// contains filtered or unexported fields
}
func (*VerifierMockGithubCredentials) Client ¶ added in v0.15.1
func (verifier *VerifierMockGithubCredentials) Client() *MockGithubCredentials_Client_OngoingVerification
func (*VerifierMockGithubCredentials) GetToken ¶ added in v0.15.1
func (verifier *VerifierMockGithubCredentials) GetToken() *MockGithubCredentials_GetToken_OngoingVerification
func (*VerifierMockGithubCredentials) GetUser ¶ added in v0.15.1
func (verifier *VerifierMockGithubCredentials) GetUser() *MockGithubCredentials_GetUser_OngoingVerification
type VerifierMockGithubPullRequestGetter ¶ added in v0.22.0
type VerifierMockGithubPullRequestGetter struct {
// contains filtered or unexported fields
}
func (*VerifierMockGithubPullRequestGetter) GetPullRequest ¶ added in v0.22.0
func (verifier *VerifierMockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification
type VerifierMockPullReqStatusFetcher ¶ added in v0.22.3
type VerifierMockPullReqStatusFetcher struct {
// contains filtered or unexported fields
}
func (*VerifierMockPullReqStatusFetcher) FetchPullStatus ¶ added in v0.22.3
func (verifier *VerifierMockPullReqStatusFetcher) FetchPullStatus(logger logging.SimpleLogging, pull models.PullRequest) *MockPullReqStatusFetcher_FetchPullStatus_OngoingVerification
Click to show internal directories.
Click to hide internal directories.