Documentation
¶
Index ¶
- type MockCredentials
- func (mock *MockCredentials) Client() (*http.Client, error)
- func (mock *MockCredentials) FailHandler() pegomock.FailHandler
- func (mock *MockCredentials) GetToken() (string, error)
- func (mock *MockCredentials) GetUser() (string, error)
- func (mock *MockCredentials) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockCredentials) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockCredentials
- func (mock *MockCredentials) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockCredentials
- func (mock *MockCredentials) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockCredentials
- func (mock *MockCredentials) VerifyWasCalledOnce() *VerifierMockCredentials
- type MockCredentials_Client_OngoingVerification
- type MockCredentials_GetToken_OngoingVerification
- type MockCredentials_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 VerifierMockCredentials
- type VerifierMockGithubPullRequestGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCredentials ¶
type MockCredentials struct {
// contains filtered or unexported fields
}
func NewMockCredentials ¶
func NewMockCredentials(options ...pegomock.Option) *MockCredentials
func (*MockCredentials) FailHandler ¶
func (mock *MockCredentials) FailHandler() pegomock.FailHandler
func (*MockCredentials) GetToken ¶
func (mock *MockCredentials) GetToken() (string, error)
func (*MockCredentials) GetUser ¶
func (mock *MockCredentials) GetUser() (string, error)
func (*MockCredentials) SetFailHandler ¶
func (mock *MockCredentials) SetFailHandler(fh pegomock.FailHandler)
func (*MockCredentials) VerifyWasCalled ¶
func (mock *MockCredentials) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockCredentials
func (*MockCredentials) VerifyWasCalledEventually ¶
func (mock *MockCredentials) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockCredentials
func (*MockCredentials) VerifyWasCalledInOrder ¶
func (mock *MockCredentials) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockCredentials
func (*MockCredentials) VerifyWasCalledOnce ¶
func (mock *MockCredentials) VerifyWasCalledOnce() *VerifierMockCredentials
type MockCredentials_Client_OngoingVerification ¶
type MockCredentials_Client_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCredentials_Client_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockCredentials_Client_OngoingVerification) GetAllCapturedArguments()
func (*MockCredentials_Client_OngoingVerification) GetCapturedArguments ¶
func (c *MockCredentials_Client_OngoingVerification) GetCapturedArguments()
type MockCredentials_GetToken_OngoingVerification ¶
type MockCredentials_GetToken_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCredentials_GetToken_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockCredentials_GetToken_OngoingVerification) GetAllCapturedArguments()
func (*MockCredentials_GetToken_OngoingVerification) GetCapturedArguments ¶
func (c *MockCredentials_GetToken_OngoingVerification) GetCapturedArguments()
type MockCredentials_GetUser_OngoingVerification ¶
type MockCredentials_GetUser_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockCredentials_GetUser_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockCredentials_GetUser_OngoingVerification) GetAllCapturedArguments()
func (*MockCredentials_GetUser_OngoingVerification) GetCapturedArguments ¶
func (c *MockCredentials_GetUser_OngoingVerification) GetCapturedArguments()
type MockGithubPullRequestGetter ¶
type MockGithubPullRequestGetter struct {
// contains filtered or unexported fields
}
func NewMockGithubPullRequestGetter ¶
func NewMockGithubPullRequestGetter(options ...pegomock.Option) *MockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) FailHandler ¶
func (mock *MockGithubPullRequestGetter) FailHandler() pegomock.FailHandler
func (*MockGithubPullRequestGetter) GetPullRequest ¶
func (mock *MockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) (*github.PullRequest, error)
func (*MockGithubPullRequestGetter) SetFailHandler ¶
func (mock *MockGithubPullRequestGetter) SetFailHandler(fh pegomock.FailHandler)
func (*MockGithubPullRequestGetter) VerifyWasCalled ¶
func (mock *MockGithubPullRequestGetter) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledEventually ¶
func (mock *MockGithubPullRequestGetter) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledInOrder ¶
func (mock *MockGithubPullRequestGetter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGithubPullRequestGetter
func (*MockGithubPullRequestGetter) VerifyWasCalledOnce ¶
func (mock *MockGithubPullRequestGetter) VerifyWasCalledOnce() *VerifierMockGithubPullRequestGetter
type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification ¶
type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments ¶
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int)
func (*MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments ¶
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int)
type VerifierMockCredentials ¶
type VerifierMockCredentials struct {
// contains filtered or unexported fields
}
func (*VerifierMockCredentials) Client ¶
func (verifier *VerifierMockCredentials) Client() *MockCredentials_Client_OngoingVerification
func (*VerifierMockCredentials) GetToken ¶
func (verifier *VerifierMockCredentials) GetToken() *MockCredentials_GetToken_OngoingVerification
func (*VerifierMockCredentials) GetUser ¶
func (verifier *VerifierMockCredentials) GetUser() *MockCredentials_GetUser_OngoingVerification
type VerifierMockGithubPullRequestGetter ¶
type VerifierMockGithubPullRequestGetter struct {
// contains filtered or unexported fields
}
func (*VerifierMockGithubPullRequestGetter) GetPullRequest ¶
func (verifier *VerifierMockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification
Click to show internal directories.
Click to hide internal directories.