mocks

package
v0.19.4-pre.20220513 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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(_param0 models.Repo, _param1 int, _param2 string, _param3 string) error

func (*MockClient) DownloadRepoConfigFile added in v0.15.0

func (mock *MockClient) DownloadRepoConfigFile(_param0 models.PullRequest) (bool, []byte, error)

func (*MockClient) FailHandler added in v0.6.0

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

func (*MockClient) GetModifiedFiles

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

func (*MockClient) GetTeamNamesForUser added in v0.18.0

func (mock *MockClient) GetTeamNamesForUser(repo models.Repo, user models.User) ([]string, error)

func (*MockClient) HidePrevCommandComments added in v0.17.1

func (mock *MockClient) HidePrevCommandComments(_param0 models.Repo, _param1 int, _param2 string) error
func (mock *MockClient) MarkdownPullLink(_param0 models.PullRequest) (string, error)

func (*MockClient) MergePull added in v0.5.0

func (mock *MockClient) MergePull(_param0 models.PullRequest, _param1 models.PullRequestOptions) error

func (*MockClient) PullIsApproved

func (mock *MockClient) PullIsApproved(_param0 models.Repo, _param1 models.PullRequest) (models.ApprovalStatus, error)

func (*MockClient) PullIsMergeable added in v0.4.13

func (mock *MockClient) PullIsMergeable(_param0 models.Repo, _param1 models.PullRequest) (bool, 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(_param0 models.Repo) bool

func (*MockClient) UpdateStatus

func (mock *MockClient) UpdateStatus(_param0 models.Repo, _param1 models.PullRequest, _param2 models.CommitStatus, _param3 string, _param4 string, _param5 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 []models.Repo, _param1 []int, _param2 []string, _param3 []string)

func (*MockClient_CreateComment_OngoingVerification) GetCapturedArguments added in v0.8.3

type MockClient_DownloadRepoConfigFile_OngoingVerification added in v0.15.0

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

func (*MockClient_DownloadRepoConfigFile_OngoingVerification) GetAllCapturedArguments added in v0.15.0

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

func (*MockClient_DownloadRepoConfigFile_OngoingVerification) GetCapturedArguments added in v0.15.0

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

type MockClient_GetTeamNamesForUser_OngoingVerification added in v0.18.0

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

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 []models.Repo, _param1 []int, _param2 []string)

func (*MockClient_HidePrevCommandComments_OngoingVerification) GetCapturedArguments added in v0.17.1

type MockClient_MarkdownPullLink_OngoingVerification struct {
	// contains filtered or unexported fields
}
func (c *MockClient_MarkdownPullLink_OngoingVerification) GetAllCapturedArguments() (_param0 []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, _param1 []models.PullRequestOptions)

func (*MockClient_MergePull_OngoingVerification) GetCapturedArguments added in v0.8.3

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

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

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

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

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 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(_param0 models.Repo, _param1 int, _param2 string, _param3 string) *MockClient_CreateComment_OngoingVerification

func (*VerifierMockClient) DownloadRepoConfigFile added in v0.15.0

func (*VerifierMockClient) GetModifiedFiles added in v0.8.3

func (*VerifierMockClient) GetTeamNamesForUser added in v0.18.0

func (*VerifierMockClient) HidePrevCommandComments added in v0.17.1

func (verifier *VerifierMockClient) HidePrevCommandComments(_param0 models.Repo, _param1 int, _param2 string) *MockClient_HidePrevCommandComments_OngoingVerification

func (*VerifierMockClient) MergePull added in v0.8.3

func (*VerifierMockClient) PullIsApproved added in v0.8.3

func (*VerifierMockClient) PullIsMergeable added in v0.8.3

func (*VerifierMockClient) SupportsSingleFileDownload added in v0.15.0

func (verifier *VerifierMockClient) SupportsSingleFileDownload(_param0 models.Repo) *MockClient_SupportsSingleFileDownload_OngoingVerification

func (*VerifierMockClient) UpdateStatus added in v0.8.3

func (verifier *VerifierMockClient) UpdateStatus(_param0 models.Repo, _param1 models.PullRequest, _param2 models.CommitStatus, _param3 string, _param4 string, _param5 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 (*VerifierMockGithubCredentials) GetToken added in v0.15.1

func (*VerifierMockGithubCredentials) GetUser added in v0.15.1

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