scmfakes

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeService

type FakeService struct {
	CreatePullRequestStub func(context.Context, string, *scma.PullRequestInput) (*scma.PullRequest, error)

	CreatePullRequestCommentStub func(context.Context, string, int, *scma.CommentInput) (*scma.Comment, error)

	FindRepoStub func(context.Context, string) (*scma.Repository, error)

	GetPullRequestStub func(context.Context, string, int) (*scma.PullRequest, error)

	ListPullRequestChangesStub func(context.Context, string, int, scma.ListOptions) ([]*scma.Change, error)

	ListPullRequestCommentsStub func(context.Context, string, int, scma.ListOptions) ([]*scma.Comment, error)

	ListPullRequestCommitsStub func(context.Context, string, int, scma.ListOptions) ([]*scma.Commit, error)

	ListPullRequestsStub func(context.Context, string, scma.PullRequestListOptions) ([]*scma.PullRequest, error)

	ListReposStub func(context.Context, scma.ListOptions) ([]*scma.Repository, error)

	MergePullRequestStub func(context.Context, string, int) error

	ValidateStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*FakeService) CreatePullRequest

func (fake *FakeService) CreatePullRequest(arg1 context.Context, arg2 string, arg3 *scma.PullRequestInput) (*scma.PullRequest, error)

func (*FakeService) CreatePullRequestArgsForCall

func (fake *FakeService) CreatePullRequestArgsForCall(i int) (context.Context, string, *scma.PullRequestInput)

func (*FakeService) CreatePullRequestCallCount

func (fake *FakeService) CreatePullRequestCallCount() int

func (*FakeService) CreatePullRequestCalls

func (fake *FakeService) CreatePullRequestCalls(stub func(context.Context, string, *scma.PullRequestInput) (*scma.PullRequest, error))

func (*FakeService) CreatePullRequestComment

func (fake *FakeService) CreatePullRequestComment(arg1 context.Context, arg2 string, arg3 int, arg4 *scma.CommentInput) (*scma.Comment, error)

func (*FakeService) CreatePullRequestCommentArgsForCall

func (fake *FakeService) CreatePullRequestCommentArgsForCall(i int) (context.Context, string, int, *scma.CommentInput)

func (*FakeService) CreatePullRequestCommentCallCount

func (fake *FakeService) CreatePullRequestCommentCallCount() int

func (*FakeService) CreatePullRequestCommentCalls

func (fake *FakeService) CreatePullRequestCommentCalls(stub func(context.Context, string, int, *scma.CommentInput) (*scma.Comment, error))

func (*FakeService) CreatePullRequestCommentReturns

func (fake *FakeService) CreatePullRequestCommentReturns(result1 *scma.Comment, result2 error)

func (*FakeService) CreatePullRequestCommentReturnsOnCall

func (fake *FakeService) CreatePullRequestCommentReturnsOnCall(i int, result1 *scma.Comment, result2 error)

func (*FakeService) CreatePullRequestReturns

func (fake *FakeService) CreatePullRequestReturns(result1 *scma.PullRequest, result2 error)

func (*FakeService) CreatePullRequestReturnsOnCall

func (fake *FakeService) CreatePullRequestReturnsOnCall(i int, result1 *scma.PullRequest, result2 error)

func (*FakeService) FindRepo

func (fake *FakeService) FindRepo(arg1 context.Context, arg2 string) (*scma.Repository, error)

func (*FakeService) FindRepoArgsForCall

func (fake *FakeService) FindRepoArgsForCall(i int) (context.Context, string)

func (*FakeService) FindRepoCallCount

func (fake *FakeService) FindRepoCallCount() int

func (*FakeService) FindRepoCalls

func (fake *FakeService) FindRepoCalls(stub func(context.Context, string) (*scma.Repository, error))

func (*FakeService) FindRepoReturns

func (fake *FakeService) FindRepoReturns(result1 *scma.Repository, result2 error)

func (*FakeService) FindRepoReturnsOnCall

func (fake *FakeService) FindRepoReturnsOnCall(i int, result1 *scma.Repository, result2 error)

func (*FakeService) GetPullRequest

func (fake *FakeService) GetPullRequest(arg1 context.Context, arg2 string, arg3 int) (*scma.PullRequest, error)

func (*FakeService) GetPullRequestArgsForCall

func (fake *FakeService) GetPullRequestArgsForCall(i int) (context.Context, string, int)

func (*FakeService) GetPullRequestCallCount

func (fake *FakeService) GetPullRequestCallCount() int

func (*FakeService) GetPullRequestCalls

func (fake *FakeService) GetPullRequestCalls(stub func(context.Context, string, int) (*scma.PullRequest, error))

func (*FakeService) GetPullRequestReturns

func (fake *FakeService) GetPullRequestReturns(result1 *scma.PullRequest, result2 error)

func (*FakeService) GetPullRequestReturnsOnCall

func (fake *FakeService) GetPullRequestReturnsOnCall(i int, result1 *scma.PullRequest, result2 error)

func (*FakeService) Invocations

func (fake *FakeService) Invocations() map[string][][]interface{}

func (*FakeService) ListPullRequestChanges

func (fake *FakeService) ListPullRequestChanges(arg1 context.Context, arg2 string, arg3 int, arg4 scma.ListOptions) ([]*scma.Change, error)

func (*FakeService) ListPullRequestChangesArgsForCall

func (fake *FakeService) ListPullRequestChangesArgsForCall(i int) (context.Context, string, int, scma.ListOptions)

func (*FakeService) ListPullRequestChangesCallCount

func (fake *FakeService) ListPullRequestChangesCallCount() int

func (*FakeService) ListPullRequestChangesCalls

func (fake *FakeService) ListPullRequestChangesCalls(stub func(context.Context, string, int, scma.ListOptions) ([]*scma.Change, error))

func (*FakeService) ListPullRequestChangesReturns

func (fake *FakeService) ListPullRequestChangesReturns(result1 []*scma.Change, result2 error)

func (*FakeService) ListPullRequestChangesReturnsOnCall

func (fake *FakeService) ListPullRequestChangesReturnsOnCall(i int, result1 []*scma.Change, result2 error)

func (*FakeService) ListPullRequestComments

func (fake *FakeService) ListPullRequestComments(arg1 context.Context, arg2 string, arg3 int, arg4 scma.ListOptions) ([]*scma.Comment, error)

func (*FakeService) ListPullRequestCommentsArgsForCall

func (fake *FakeService) ListPullRequestCommentsArgsForCall(i int) (context.Context, string, int, scma.ListOptions)

func (*FakeService) ListPullRequestCommentsCallCount

func (fake *FakeService) ListPullRequestCommentsCallCount() int

func (*FakeService) ListPullRequestCommentsCalls

func (fake *FakeService) ListPullRequestCommentsCalls(stub func(context.Context, string, int, scma.ListOptions) ([]*scma.Comment, error))

func (*FakeService) ListPullRequestCommentsReturns

func (fake *FakeService) ListPullRequestCommentsReturns(result1 []*scma.Comment, result2 error)

func (*FakeService) ListPullRequestCommentsReturnsOnCall

func (fake *FakeService) ListPullRequestCommentsReturnsOnCall(i int, result1 []*scma.Comment, result2 error)

func (*FakeService) ListPullRequestCommits

func (fake *FakeService) ListPullRequestCommits(arg1 context.Context, arg2 string, arg3 int, arg4 scma.ListOptions) ([]*scma.Commit, error)

func (*FakeService) ListPullRequestCommitsArgsForCall

func (fake *FakeService) ListPullRequestCommitsArgsForCall(i int) (context.Context, string, int, scma.ListOptions)

func (*FakeService) ListPullRequestCommitsCallCount

func (fake *FakeService) ListPullRequestCommitsCallCount() int

func (*FakeService) ListPullRequestCommitsCalls

func (fake *FakeService) ListPullRequestCommitsCalls(stub func(context.Context, string, int, scma.ListOptions) ([]*scma.Commit, error))

func (*FakeService) ListPullRequestCommitsReturns

func (fake *FakeService) ListPullRequestCommitsReturns(result1 []*scma.Commit, result2 error)

func (*FakeService) ListPullRequestCommitsReturnsOnCall

func (fake *FakeService) ListPullRequestCommitsReturnsOnCall(i int, result1 []*scma.Commit, result2 error)

func (*FakeService) ListPullRequests

func (fake *FakeService) ListPullRequests(arg1 context.Context, arg2 string, arg3 scma.PullRequestListOptions) ([]*scma.PullRequest, error)

func (*FakeService) ListPullRequestsArgsForCall

func (fake *FakeService) ListPullRequestsArgsForCall(i int) (context.Context, string, scma.PullRequestListOptions)

func (*FakeService) ListPullRequestsCallCount

func (fake *FakeService) ListPullRequestsCallCount() int

func (*FakeService) ListPullRequestsCalls

func (fake *FakeService) ListPullRequestsCalls(stub func(context.Context, string, scma.PullRequestListOptions) ([]*scma.PullRequest, error))

func (*FakeService) ListPullRequestsReturns

func (fake *FakeService) ListPullRequestsReturns(result1 []*scma.PullRequest, result2 error)

func (*FakeService) ListPullRequestsReturnsOnCall

func (fake *FakeService) ListPullRequestsReturnsOnCall(i int, result1 []*scma.PullRequest, result2 error)

func (*FakeService) ListRepos

func (fake *FakeService) ListRepos(arg1 context.Context, arg2 scma.ListOptions) ([]*scma.Repository, error)

func (*FakeService) ListReposArgsForCall

func (fake *FakeService) ListReposArgsForCall(i int) (context.Context, scma.ListOptions)

func (*FakeService) ListReposCallCount

func (fake *FakeService) ListReposCallCount() int

func (*FakeService) ListReposCalls

func (fake *FakeService) ListReposCalls(stub func(context.Context, scma.ListOptions) ([]*scma.Repository, error))

func (*FakeService) ListReposReturns

func (fake *FakeService) ListReposReturns(result1 []*scma.Repository, result2 error)

func (*FakeService) ListReposReturnsOnCall

func (fake *FakeService) ListReposReturnsOnCall(i int, result1 []*scma.Repository, result2 error)

func (*FakeService) MergePullRequest

func (fake *FakeService) MergePullRequest(arg1 context.Context, arg2 string, arg3 int) error

func (*FakeService) MergePullRequestArgsForCall

func (fake *FakeService) MergePullRequestArgsForCall(i int) (context.Context, string, int)

func (*FakeService) MergePullRequestCallCount

func (fake *FakeService) MergePullRequestCallCount() int

func (*FakeService) MergePullRequestCalls

func (fake *FakeService) MergePullRequestCalls(stub func(context.Context, string, int) error)

func (*FakeService) MergePullRequestReturns

func (fake *FakeService) MergePullRequestReturns(result1 error)

func (*FakeService) MergePullRequestReturnsOnCall

func (fake *FakeService) MergePullRequestReturnsOnCall(i int, result1 error)

func (*FakeService) Validate

func (fake *FakeService) Validate(arg1 context.Context) error

func (*FakeService) ValidateArgsForCall

func (fake *FakeService) ValidateArgsForCall(i int) context.Context

func (*FakeService) ValidateCallCount

func (fake *FakeService) ValidateCallCount() int

func (*FakeService) ValidateCalls

func (fake *FakeService) ValidateCalls(stub func(context.Context) error)

func (*FakeService) ValidateReturns

func (fake *FakeService) ValidateReturns(result1 error)

func (*FakeService) ValidateReturnsOnCall

func (fake *FakeService) ValidateReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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