# README
appfakes
import "github.com/Mgla96/snappr/internal/app/appfakes"
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index
- type FakeGithubClient
- func (fake *FakeGithubClient) AddCommentToPullRequestReview(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 string, arg6 string, arg7 string, arg8 int, arg9 int) (*github.PullRequestComment, error)
- func (fake *FakeGithubClient) AddCommentToPullRequestReviewArgsForCall(i int) (context.Context, string, string, int, string, string, string, int, int)
- func (fake *FakeGithubClient) AddCommentToPullRequestReviewCallCount() int
- func (fake *FakeGithubClient) AddCommentToPullRequestReviewCalls(stub func(context.Context, string, string, int, string, string, string, int, int) (*github.PullRequestComment, error))
- func (fake *FakeGithubClient) AddCommentToPullRequestReviewReturns(result1 *github.PullRequestComment, result2 error)
- func (fake *FakeGithubClient) AddCommentToPullRequestReviewReturnsOnCall(i int, result1 *github.PullRequestComment, result2 error)
- func (fake *FakeGithubClient) AddCommitToBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 []byte) error
- func (fake *FakeGithubClient) AddCommitToBranchArgsForCall(i int) (context.Context, string, string, string, string, string, []byte)
- func (fake *FakeGithubClient) AddCommitToBranchCallCount() int
- func (fake *FakeGithubClient) AddCommitToBranchCalls(stub func(context.Context, string, string, string, string, string, []byte) error)
- func (fake *FakeGithubClient) AddCommitToBranchReturns(result1 error)
- func (fake *FakeGithubClient) AddCommitToBranchReturnsOnCall(i int, result1 error)
- func (fake *FakeGithubClient) CreateBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) error
- func (fake *FakeGithubClient) CreateBranchArgsForCall(i int) (context.Context, string, string, string, string)
- func (fake *FakeGithubClient) CreateBranchCallCount() int
- func (fake *FakeGithubClient) CreateBranchCalls(stub func(context.Context, string, string, string, string) error)
- func (fake *FakeGithubClient) CreateBranchReturns(result1 error)
- func (fake *FakeGithubClient) CreateBranchReturnsOnCall(i int, result1 error)
- func (fake *FakeGithubClient) CreatePullRequest(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 string) (*github.PullRequest, error)
- func (fake *FakeGithubClient) CreatePullRequestArgsForCall(i int) (context.Context, string, string, string, string, string, string)
- func (fake *FakeGithubClient) CreatePullRequestCallCount() int
- func (fake *FakeGithubClient) CreatePullRequestCalls(stub func(context.Context, string, string, string, string, string, string) (*github.PullRequest, error))
- func (fake *FakeGithubClient) CreatePullRequestReturns(result1 *github.PullRequest, result2 error)
- func (fake *FakeGithubClient) CreatePullRequestReturnsOnCall(i int, result1 *github.PullRequest, result2 error)
- func (fake *FakeGithubClient) GetCommitCode(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 clients.CodeFilter) (map[string]string, error)
- func (fake *FakeGithubClient) GetCommitCodeArgsForCall(i int) (context.Context, string, string, string, clients.CodeFilter)
- func (fake *FakeGithubClient) GetCommitCodeCallCount() int
- func (fake *FakeGithubClient) GetCommitCodeCalls(stub func(context.Context, string, string, string, clients.CodeFilter) (map[string]string, error))
- func (fake *FakeGithubClient) GetCommitCodeReturns(result1 map[string]string, result2 error)
- func (fake *FakeGithubClient) GetCommitCodeReturnsOnCall(i int, result1 map[string]string, result2 error)
- func (fake *FakeGithubClient) GetLatestCommitFromBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string) (string, error)
- func (fake *FakeGithubClient) GetLatestCommitFromBranchArgsForCall(i int) (context.Context, string, string, string)
- func (fake *FakeGithubClient) GetLatestCommitFromBranchCallCount() int
- func (fake *FakeGithubClient) GetLatestCommitFromBranchCalls(stub func(context.Context, string, string, string) (string, error))
- func (fake *FakeGithubClient) GetLatestCommitFromBranchReturns(result1 string, result2 error)
- func (fake *FakeGithubClient) GetLatestCommitFromBranchReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeGithubClient) GetPRCode(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 *github.ListOptions, arg6 clients.CodeFilter) (map[string]string, error)
- func (fake *FakeGithubClient) GetPRCodeArgsForCall(i int) (context.Context, string, string, int, *github.ListOptions, clients.CodeFilter)
- func (fake *FakeGithubClient) GetPRCodeCallCount() int
- func (fake *FakeGithubClient) GetPRCodeCalls(stub func(context.Context, string, string, int, *github.ListOptions, clients.CodeFilter) (map[string]string, error))
- func (fake *FakeGithubClient) GetPRCodeReturns(result1 map[string]string, result2 error)
- func (fake *FakeGithubClient) GetPRCodeReturnsOnCall(i int, result1 map[string]string, result2 error)
- func (fake *FakeGithubClient) GetPRPatch(arg1 context.Context, arg2 string, arg3 string, arg4 int) (string, error)
- func (fake *FakeGithubClient) GetPRPatchArgsForCall(i int) (context.Context, string, string, int)
- func (fake *FakeGithubClient) GetPRPatchCallCount() int
- func (fake *FakeGithubClient) GetPRPatchCalls(stub func(context.Context, string, string, int) (string, error))
- func (fake *FakeGithubClient) GetPRPatchReturns(result1 string, result2 error)
- func (fake *FakeGithubClient) GetPRPatchReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeGithubClient) Invocations() map[string][][]interface{}
- func (fake *FakeGithubClient) ListPullRequests(arg1 context.Context, arg2 string, arg3 string, arg4 *github.PullRequestListOptions) ([]*github.PullRequest, error)
- func (fake *FakeGithubClient) ListPullRequestsArgsForCall(i int) (context.Context, string, string, *github.PullRequestListOptions)
- func (fake *FakeGithubClient) ListPullRequestsCallCount() int
- func (fake *FakeGithubClient) ListPullRequestsCalls(stub func(context.Context, string, string, *github.PullRequestListOptions) ([]*github.PullRequest, error))
- func (fake *FakeGithubClient) ListPullRequestsReturns(result1 []*github.PullRequest, result2 error)
- func (fake *FakeGithubClient) ListPullRequestsReturnsOnCall(i int, result1 []*github.PullRequest, result2 error)
- func (fake *FakeGithubClient) MergePullRequest(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 string) (*github.PullRequestMergeResult, error)
- func (fake *FakeGithubClient) MergePullRequestArgsForCall(i int) (context.Context, string, string, int, string)
- func (fake *FakeGithubClient) MergePullRequestCallCount() int
- func (fake *FakeGithubClient) MergePullRequestCalls(stub func(context.Context, string, string, int, string) (*github.PullRequestMergeResult, error))
- func (fake *FakeGithubClient) MergePullRequestReturns(result1 *github.PullRequestMergeResult, result2 error)
- func (fake *FakeGithubClient) MergePullRequestReturnsOnCall(i int, result1 *github.PullRequestMergeResult, result2 error)
- type FakeLlmClient
- func (fake *FakeLlmClient) GenerateChatCompletion(arg1 context.Context, arg2 []openai.ChatCompletionMessage, arg3 clients.ModelType) (string, error)
- func (fake *FakeLlmClient) GenerateChatCompletionArgsForCall(i int) (context.Context, []openai.ChatCompletionMessage, clients.ModelType)
- func (fake *FakeLlmClient) GenerateChatCompletionCallCount() int
- func (fake *FakeLlmClient) GenerateChatCompletionCalls(stub func(context.Context, []openai.ChatCompletionMessage, clients.ModelType) (string, error))
- func (fake *FakeLlmClient) GenerateChatCompletionReturns(result1 string, result2 error)
- func (fake *FakeLlmClient) GenerateChatCompletionReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeLlmClient) Invocations() map[string][][]interface{}
type FakeGithubClient
type FakeGithubClient struct {
AddCommentToPullRequestReviewStub func(context.Context, string, string, int, string, string, string, int, int) (*github.PullRequestComment, error)
AddCommitToBranchStub func(context.Context, string, string, string, string, string, []byte) error
CreateBranchStub func(context.Context, string, string, string, string) error
CreatePullRequestStub func(context.Context, string, string, string, string, string, string) (*github.PullRequest, error)
GetCommitCodeStub func(context.Context, string, string, string, clients.CodeFilter) (map[string]string, error)
GetLatestCommitFromBranchStub func(context.Context, string, string, string) (string, error)
GetPRCodeStub func(context.Context, string, string, int, *github.ListOptions, clients.CodeFilter) (map[string]string, error)
GetPRPatchStub func(context.Context, string, string, int) (string, error)
ListPullRequestsStub func(context.Context, string, string, *github.PullRequestListOptions) ([]*github.PullRequest, error)
MergePullRequestStub func(context.Context, string, string, int, string) (*github.PullRequestMergeResult, error)
// contains filtered or unexported fields
}
func (*FakeGithubClient) AddCommentToPullRequestReview
func (fake *FakeGithubClient) AddCommentToPullRequestReview(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 string, arg6 string, arg7 string, arg8 int, arg9 int) (*github.PullRequestComment, error)
func (*FakeGithubClient) AddCommentToPullRequestReviewArgsForCall
func (fake *FakeGithubClient) AddCommentToPullRequestReviewArgsForCall(i int) (context.Context, string, string, int, string, string, string, int, int)
func (*FakeGithubClient) AddCommentToPullRequestReviewCallCount
func (fake *FakeGithubClient) AddCommentToPullRequestReviewCallCount() int
func (*FakeGithubClient) AddCommentToPullRequestReviewCalls
func (fake *FakeGithubClient) AddCommentToPullRequestReviewCalls(stub func(context.Context, string, string, int, string, string, string, int, int) (*github.PullRequestComment, error))
func (*FakeGithubClient) AddCommentToPullRequestReviewReturns
func (fake *FakeGithubClient) AddCommentToPullRequestReviewReturns(result1 *github.PullRequestComment, result2 error)
func (*FakeGithubClient) AddCommentToPullRequestReviewReturnsOnCall
func (fake *FakeGithubClient) AddCommentToPullRequestReviewReturnsOnCall(i int, result1 *github.PullRequestComment, result2 error)
func (*FakeGithubClient) AddCommitToBranch
func (fake *FakeGithubClient) AddCommitToBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 []byte) error
func (*FakeGithubClient) AddCommitToBranchArgsForCall
func (fake *FakeGithubClient) AddCommitToBranchArgsForCall(i int) (context.Context, string, string, string, string, string, []byte)
func (*FakeGithubClient) AddCommitToBranchCallCount
func (fake *FakeGithubClient) AddCommitToBranchCallCount() int
func (*FakeGithubClient) AddCommitToBranchCalls
func (fake *FakeGithubClient) AddCommitToBranchCalls(stub func(context.Context, string, string, string, string, string, []byte) error)
func (*FakeGithubClient) AddCommitToBranchReturns
func (fake *FakeGithubClient) AddCommitToBranchReturns(result1 error)
func (*FakeGithubClient) AddCommitToBranchReturnsOnCall
func (fake *FakeGithubClient) AddCommitToBranchReturnsOnCall(i int, result1 error)
func (*FakeGithubClient) CreateBranch
func (fake *FakeGithubClient) CreateBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) error
func (*FakeGithubClient) CreateBranchArgsForCall
func (fake *FakeGithubClient) CreateBranchArgsForCall(i int) (context.Context, string, string, string, string)
func (*FakeGithubClient) CreateBranchCallCount
func (fake *FakeGithubClient) CreateBranchCallCount() int
func (*FakeGithubClient) CreateBranchCalls
func (fake *FakeGithubClient) CreateBranchCalls(stub func(context.Context, string, string, string, string) error)
func (*FakeGithubClient) CreateBranchReturns
func (fake *FakeGithubClient) CreateBranchReturns(result1 error)
func (*FakeGithubClient) CreateBranchReturnsOnCall
func (fake *FakeGithubClient) CreateBranchReturnsOnCall(i int, result1 error)
func (*FakeGithubClient) CreatePullRequest
func (fake *FakeGithubClient) CreatePullRequest(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 string) (*github.PullRequest, error)
func (*FakeGithubClient) CreatePullRequestArgsForCall
func (fake *FakeGithubClient) CreatePullRequestArgsForCall(i int) (context.Context, string, string, string, string, string, string)
func (*FakeGithubClient) CreatePullRequestCallCount
func (fake *FakeGithubClient) CreatePullRequestCallCount() int
func (*FakeGithubClient) CreatePullRequestCalls
func (fake *FakeGithubClient) CreatePullRequestCalls(stub func(context.Context, string, string, string, string, string, string) (*github.PullRequest, error))
func (*FakeGithubClient) CreatePullRequestReturns
func (fake *FakeGithubClient) CreatePullRequestReturns(result1 *github.PullRequest, result2 error)
func (*FakeGithubClient) CreatePullRequestReturnsOnCall
func (fake *FakeGithubClient) CreatePullRequestReturnsOnCall(i int, result1 *github.PullRequest, result2 error)
func (*FakeGithubClient) GetCommitCode
func (fake *FakeGithubClient) GetCommitCode(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 clients.CodeFilter) (map[string]string, error)
func (*FakeGithubClient) GetCommitCodeArgsForCall
func (fake *FakeGithubClient) GetCommitCodeArgsForCall(i int) (context.Context, string, string, string, clients.CodeFilter)
func (*FakeGithubClient) GetCommitCodeCallCount
func (fake *FakeGithubClient) GetCommitCodeCallCount() int
func (*FakeGithubClient) GetCommitCodeCalls
func (fake *FakeGithubClient) GetCommitCodeCalls(stub func(context.Context, string, string, string, clients.CodeFilter) (map[string]string, error))
func (*FakeGithubClient) GetCommitCodeReturns
func (fake *FakeGithubClient) GetCommitCodeReturns(result1 map[string]string, result2 error)
func (*FakeGithubClient) GetCommitCodeReturnsOnCall
func (fake *FakeGithubClient) GetCommitCodeReturnsOnCall(i int, result1 map[string]string, result2 error)
func (*FakeGithubClient) GetLatestCommitFromBranch
func (fake *FakeGithubClient) GetLatestCommitFromBranch(arg1 context.Context, arg2 string, arg3 string, arg4 string) (string, error)
func (*FakeGithubClient) GetLatestCommitFromBranchArgsForCall
func (fake *FakeGithubClient) GetLatestCommitFromBranchArgsForCall(i int) (context.Context, string, string, string)
func (*FakeGithubClient) GetLatestCommitFromBranchCallCount
func (fake *FakeGithubClient) GetLatestCommitFromBranchCallCount() int
func (*FakeGithubClient) GetLatestCommitFromBranchCalls
func (fake *FakeGithubClient) GetLatestCommitFromBranchCalls(stub func(context.Context, string, string, string) (string, error))
func (*FakeGithubClient) GetLatestCommitFromBranchReturns
func (fake *FakeGithubClient) GetLatestCommitFromBranchReturns(result1 string, result2 error)
func (*FakeGithubClient) GetLatestCommitFromBranchReturnsOnCall
func (fake *FakeGithubClient) GetLatestCommitFromBranchReturnsOnCall(i int, result1 string, result2 error)
func (*FakeGithubClient) GetPRCode
func (fake *FakeGithubClient) GetPRCode(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 *github.ListOptions, arg6 clients.CodeFilter) (map[string]string, error)
func (*FakeGithubClient) GetPRCodeArgsForCall
func (fake *FakeGithubClient) GetPRCodeArgsForCall(i int) (context.Context, string, string, int, *github.ListOptions, clients.CodeFilter)
func (*FakeGithubClient) GetPRCodeCallCount
func (fake *FakeGithubClient) GetPRCodeCallCount() int
func (*FakeGithubClient) GetPRCodeCalls
func (fake *FakeGithubClient) GetPRCodeCalls(stub func(context.Context, string, string, int, *github.ListOptions, clients.CodeFilter) (map[string]string, error))
func (*FakeGithubClient) GetPRCodeReturns
func (fake *FakeGithubClient) GetPRCodeReturns(result1 map[string]string, result2 error)
func (*FakeGithubClient) GetPRCodeReturnsOnCall
func (fake *FakeGithubClient) GetPRCodeReturnsOnCall(i int, result1 map[string]string, result2 error)
func (*FakeGithubClient) GetPRPatch
func (fake *FakeGithubClient) GetPRPatch(arg1 context.Context, arg2 string, arg3 string, arg4 int) (string, error)
func (*FakeGithubClient) GetPRPatchArgsForCall
func (fake *FakeGithubClient) GetPRPatchArgsForCall(i int) (context.Context, string, string, int)
func (*FakeGithubClient) GetPRPatchCallCount
func (fake *FakeGithubClient) GetPRPatchCallCount() int
func (*FakeGithubClient) GetPRPatchCalls
func (fake *FakeGithubClient) GetPRPatchCalls(stub func(context.Context, string, string, int) (string, error))
func (*FakeGithubClient) GetPRPatchReturns
func (fake *FakeGithubClient) GetPRPatchReturns(result1 string, result2 error)
func (*FakeGithubClient) GetPRPatchReturnsOnCall
func (fake *FakeGithubClient) GetPRPatchReturnsOnCall(i int, result1 string, result2 error)
func (*FakeGithubClient) Invocations
func (fake *FakeGithubClient) Invocations() map[string][][]interface{}
func (*FakeGithubClient) ListPullRequests
func (fake *FakeGithubClient) ListPullRequests(arg1 context.Context, arg2 string, arg3 string, arg4 *github.PullRequestListOptions) ([]*github.PullRequest, error)
func (*FakeGithubClient) ListPullRequestsArgsForCall
func (fake *FakeGithubClient) ListPullRequestsArgsForCall(i int) (context.Context, string, string, *github.PullRequestListOptions)
func (*FakeGithubClient) ListPullRequestsCallCount
func (fake *FakeGithubClient) ListPullRequestsCallCount() int
func (*FakeGithubClient) ListPullRequestsCalls
func (fake *FakeGithubClient) ListPullRequestsCalls(stub func(context.Context, string, string, *github.PullRequestListOptions) ([]*github.PullRequest, error))
func (*FakeGithubClient) ListPullRequestsReturns
func (fake *FakeGithubClient) ListPullRequestsReturns(result1 []*github.PullRequest, result2 error)
func (*FakeGithubClient) ListPullRequestsReturnsOnCall
func (fake *FakeGithubClient) ListPullRequestsReturnsOnCall(i int, result1 []*github.PullRequest, result2 error)
func (*FakeGithubClient) MergePullRequest
func (fake *FakeGithubClient) MergePullRequest(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 string) (*github.PullRequestMergeResult, error)
func (*FakeGithubClient) MergePullRequestArgsForCall
func (fake *FakeGithubClient) MergePullRequestArgsForCall(i int) (context.Context, string, string, int, string)
func (*FakeGithubClient) MergePullRequestCallCount
func (fake *FakeGithubClient) MergePullRequestCallCount() int
func (*FakeGithubClient) MergePullRequestCalls
func (fake *FakeGithubClient) MergePullRequestCalls(stub func(context.Context, string, string, int, string) (*github.PullRequestMergeResult, error))
func (*FakeGithubClient) MergePullRequestReturns
func (fake *FakeGithubClient) MergePullRequestReturns(result1 *github.PullRequestMergeResult, result2 error)
func (*FakeGithubClient) MergePullRequestReturnsOnCall
func (fake *FakeGithubClient) MergePullRequestReturnsOnCall(i int, result1 *github.PullRequestMergeResult, result2 error)
type FakeLlmClient
type FakeLlmClient struct {
GenerateChatCompletionStub func(context.Context, []openai.ChatCompletionMessage, clients.ModelType) (string, error)
// contains filtered or unexported fields
}
func (*FakeLlmClient) GenerateChatCompletion
func (fake *FakeLlmClient) GenerateChatCompletion(arg1 context.Context, arg2 []openai.ChatCompletionMessage, arg3 clients.ModelType) (string, error)
func (*FakeLlmClient) GenerateChatCompletionArgsForCall
func (fake *FakeLlmClient) GenerateChatCompletionArgsForCall(i int) (context.Context, []openai.ChatCompletionMessage, clients.ModelType)
func (*FakeLlmClient) GenerateChatCompletionCallCount
func (fake *FakeLlmClient) GenerateChatCompletionCallCount() int
func (*FakeLlmClient) GenerateChatCompletionCalls
func (fake *FakeLlmClient) GenerateChatCompletionCalls(stub func(context.Context, []openai.ChatCompletionMessage, clients.ModelType) (string, error))
func (*FakeLlmClient) GenerateChatCompletionReturns
func (fake *FakeLlmClient) GenerateChatCompletionReturns(result1 string, result2 error)
func (*FakeLlmClient) GenerateChatCompletionReturnsOnCall
func (fake *FakeLlmClient) GenerateChatCompletionReturnsOnCall(i int, result1 string, result2 error)
func (*FakeLlmClient) Invocations
func (fake *FakeLlmClient) Invocations() map[string][][]interface{}
Generated by gomarkdoc