Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.48.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Client

func (mock *MockCredentials) Client() (*http.Client, error)

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 (*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

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

type VerifierMockCredentials

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

func (*VerifierMockCredentials) Client

func (*VerifierMockCredentials) GetToken

func (*VerifierMockCredentials) GetUser

type VerifierMockGithubPullRequestGetter

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

func (*VerifierMockGithubPullRequestGetter) GetPullRequest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL