Documentation
¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- type GitHubClient
- func (fake *GitHubClient) GetPRDetails(arg1 context.Context, arg2 string, arg3 string, arg4 int) (pkg.PRDetails, error)
- func (fake *GitHubClient) GetPRDetailsArgsForCall(i int) (context.Context, string, string, int)
- func (fake *GitHubClient) GetPRDetailsCallCount() int
- func (fake *GitHubClient) GetPRDetailsCalls(stub func(context.Context, string, string, int) (pkg.PRDetails, error))
- func (fake *GitHubClient) GetPRDetailsReturns(result1 pkg.PRDetails, result2 error)
- func (fake *GitHubClient) GetPRDetailsReturnsOnCall(i int, result1 pkg.PRDetails, result2 error)
- func (fake *GitHubClient) Invocations() map[string][][]interface{}
- func (fake *GitHubClient) SearchPRs(arg1 context.Context, arg2 string, arg3 time.DateTime, arg4 int) (pkg.SearchResult, error)
- func (fake *GitHubClient) SearchPRsArgsForCall(i int) (context.Context, string, time.DateTime, int)
- func (fake *GitHubClient) SearchPRsCallCount() int
- func (fake *GitHubClient) SearchPRsCalls(...)
- func (fake *GitHubClient) SearchPRsReturns(result1 pkg.SearchResult, result2 error)
- func (fake *GitHubClient) SearchPRsReturnsOnCall(i int, result1 pkg.SearchResult, result2 error)
- type Metrics
- func (fake *Metrics) IncPRPublished(arg1 string)
- func (fake *Metrics) IncPRPublishedArgsForCall(i int) string
- func (fake *Metrics) IncPRPublishedCallCount() int
- func (fake *Metrics) IncPRPublishedCalls(stub func(string))
- func (fake *Metrics) IncPollCycle(arg1 string)
- func (fake *Metrics) IncPollCycleArgsForCall(i int) string
- func (fake *Metrics) IncPollCycleCallCount() int
- func (fake *Metrics) IncPollCycleCalls(stub func(string))
- func (fake *Metrics) Invocations() map[string][][]interface{}
- type SinglePRTriggerHandler
- func (fake *SinglePRTriggerHandler) Invocations() map[string][][]interface{}
- func (fake *SinglePRTriggerHandler) ServeHTTP(arg1 context.Context, arg2 http.ResponseWriter, arg3 *http.Request) error
- func (fake *SinglePRTriggerHandler) ServeHTTPArgsForCall(i int) (context.Context, http.ResponseWriter, *http.Request)
- func (fake *SinglePRTriggerHandler) ServeHTTPCallCount() int
- func (fake *SinglePRTriggerHandler) ServeHTTPCalls(stub func(context.Context, http.ResponseWriter, *http.Request) error)
- func (fake *SinglePRTriggerHandler) ServeHTTPReturns(result1 error)
- func (fake *SinglePRTriggerHandler) ServeHTTPReturnsOnCall(i int, result1 error)
- type TaskCreationFilter
- func (fake *TaskCreationFilter) Invocations() map[string][][]interface{}
- func (fake *TaskCreationFilter) Skip(arg1 filter.PR) bool
- func (fake *TaskCreationFilter) SkipArgsForCall(i int) filter.PR
- func (fake *TaskCreationFilter) SkipCallCount() int
- func (fake *TaskCreationFilter) SkipCalls(stub func(filter.PR) bool)
- func (fake *TaskCreationFilter) SkipReturns(result1 bool)
- func (fake *TaskCreationFilter) SkipReturnsOnCall(i int, result1 bool)
- type TaskPublisher
- func (fake *TaskPublisher) Invocations() map[string][][]interface{}
- func (fake *TaskPublisher) PublishCreate(arg1 context.Context, arg2 pkg.PullRequest, arg3 string, arg4 pkg.PRDetails) bool
- func (fake *TaskPublisher) PublishCreateArgsForCall(i int) (context.Context, pkg.PullRequest, string, pkg.PRDetails)
- func (fake *TaskPublisher) PublishCreateCallCount() int
- func (fake *TaskPublisher) PublishCreateCalls(stub func(context.Context, pkg.PullRequest, string, pkg.PRDetails) bool)
- func (fake *TaskPublisher) PublishCreateReturns(result1 bool)
- func (fake *TaskPublisher) PublishCreateReturnsOnCall(i int, result1 bool)
- func (fake *TaskPublisher) PublishOverride(arg1 context.Context, arg2 pkg.PullRequest, arg3 string, arg4 pkg.PRDetails) (bool, bool)
- func (fake *TaskPublisher) PublishOverrideArgsForCall(i int) (context.Context, pkg.PullRequest, string, pkg.PRDetails)
- func (fake *TaskPublisher) PublishOverrideCallCount() int
- func (fake *TaskPublisher) PublishOverrideCalls(...)
- func (fake *TaskPublisher) PublishOverrideReturns(result1 bool, result2 bool)
- func (fake *TaskPublisher) PublishOverrideReturnsOnCall(i int, result1 bool, result2 bool)
- type TriggerPRReviewCommandSender
- func (fake *TriggerPRReviewCommandSender) Invocations() map[string][][]interface{}
- func (fake *TriggerPRReviewCommandSender) SendCommand(arg1 context.Context, arg2 command.TriggerPRReviewCommand) error
- func (fake *TriggerPRReviewCommandSender) SendCommandArgsForCall(i int) (context.Context, command.TriggerPRReviewCommand)
- func (fake *TriggerPRReviewCommandSender) SendCommandCallCount() int
- func (fake *TriggerPRReviewCommandSender) SendCommandCalls(stub func(context.Context, command.TriggerPRReviewCommand) error)
- func (fake *TriggerPRReviewCommandSender) SendCommandReturns(result1 error)
- func (fake *TriggerPRReviewCommandSender) SendCommandReturnsOnCall(i int, result1 error)
- type Trust
- func (fake *Trust) Invocations() map[string][][]interface{}
- func (fake *Trust) IsTrusted(arg1 context.Context, arg2 trust.PR) (trust.Result, error)
- func (fake *Trust) IsTrustedArgsForCall(i int) (context.Context, trust.PR)
- func (fake *Trust) IsTrustedCallCount() int
- func (fake *Trust) IsTrustedCalls(stub func(context.Context, trust.PR) (trust.Result, error))
- func (fake *Trust) IsTrustedReturns(result1 trust.Result, result2 error)
- func (fake *Trust) IsTrustedReturnsOnCall(i int, result1 trust.Result, result2 error)
- type Watcher
- func (fake *Watcher) Invocations() map[string][][]interface{}
- func (fake *Watcher) Poll(arg1 context.Context) error
- func (fake *Watcher) PollArgsForCall(i int) context.Context
- func (fake *Watcher) PollCallCount() int
- func (fake *Watcher) PollCalls(stub func(context.Context) error)
- func (fake *Watcher) PollReturns(result1 error)
- func (fake *Watcher) PollReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubClient ¶
type GitHubClient struct {
GetPRDetailsStub func(context.Context, string, string, int) (pkg.PRDetails, error)
SearchPRsStub func(context.Context, string, time.DateTime, int) (pkg.SearchResult, error)
// contains filtered or unexported fields
}
func (*GitHubClient) GetPRDetails ¶
func (*GitHubClient) GetPRDetailsArgsForCall ¶
func (*GitHubClient) GetPRDetailsCallCount ¶
func (fake *GitHubClient) GetPRDetailsCallCount() int
func (*GitHubClient) GetPRDetailsCalls ¶
func (*GitHubClient) GetPRDetailsReturns ¶
func (fake *GitHubClient) GetPRDetailsReturns(result1 pkg.PRDetails, result2 error)
func (*GitHubClient) GetPRDetailsReturnsOnCall ¶
func (fake *GitHubClient) GetPRDetailsReturnsOnCall(i int, result1 pkg.PRDetails, result2 error)
func (*GitHubClient) Invocations ¶
func (fake *GitHubClient) Invocations() map[string][][]interface{}
func (*GitHubClient) SearchPRs ¶
func (fake *GitHubClient) SearchPRs(arg1 context.Context, arg2 string, arg3 time.DateTime, arg4 int) (pkg.SearchResult, error)
func (*GitHubClient) SearchPRsArgsForCall ¶
func (*GitHubClient) SearchPRsCallCount ¶
func (fake *GitHubClient) SearchPRsCallCount() int
func (*GitHubClient) SearchPRsCalls ¶
func (fake *GitHubClient) SearchPRsCalls(stub func(context.Context, string, time.DateTime, int) (pkg.SearchResult, error))
func (*GitHubClient) SearchPRsReturns ¶
func (fake *GitHubClient) SearchPRsReturns(result1 pkg.SearchResult, result2 error)
func (*GitHubClient) SearchPRsReturnsOnCall ¶
func (fake *GitHubClient) SearchPRsReturnsOnCall(i int, result1 pkg.SearchResult, result2 error)
type Metrics ¶
type Metrics struct {
IncPRPublishedStub func(string)
IncPollCycleStub func(string)
// contains filtered or unexported fields
}
func (*Metrics) IncPRPublished ¶
func (*Metrics) IncPRPublishedArgsForCall ¶
func (*Metrics) IncPRPublishedCallCount ¶
func (*Metrics) IncPRPublishedCalls ¶
func (*Metrics) IncPollCycle ¶
func (*Metrics) IncPollCycleArgsForCall ¶
func (*Metrics) IncPollCycleCallCount ¶
func (*Metrics) IncPollCycleCalls ¶
func (*Metrics) Invocations ¶
type SinglePRTriggerHandler ¶
type SinglePRTriggerHandler struct {
ServeHTTPStub func(context.Context, http.ResponseWriter, *http.Request) error
// contains filtered or unexported fields
}
func (*SinglePRTriggerHandler) Invocations ¶
func (fake *SinglePRTriggerHandler) Invocations() map[string][][]interface{}
func (*SinglePRTriggerHandler) ServeHTTP ¶
func (fake *SinglePRTriggerHandler) ServeHTTP(arg1 context.Context, arg2 http.ResponseWriter, arg3 *http.Request) error
func (*SinglePRTriggerHandler) ServeHTTPArgsForCall ¶
func (fake *SinglePRTriggerHandler) ServeHTTPArgsForCall(i int) (context.Context, http.ResponseWriter, *http.Request)
func (*SinglePRTriggerHandler) ServeHTTPCallCount ¶
func (fake *SinglePRTriggerHandler) ServeHTTPCallCount() int
func (*SinglePRTriggerHandler) ServeHTTPCalls ¶
func (fake *SinglePRTriggerHandler) ServeHTTPCalls(stub func(context.Context, http.ResponseWriter, *http.Request) error)
func (*SinglePRTriggerHandler) ServeHTTPReturns ¶
func (fake *SinglePRTriggerHandler) ServeHTTPReturns(result1 error)
func (*SinglePRTriggerHandler) ServeHTTPReturnsOnCall ¶
func (fake *SinglePRTriggerHandler) ServeHTTPReturnsOnCall(i int, result1 error)
type TaskCreationFilter ¶
type TaskCreationFilter struct {
SkipStub func(filter.PR) bool
// contains filtered or unexported fields
}
func (*TaskCreationFilter) Invocations ¶
func (fake *TaskCreationFilter) Invocations() map[string][][]interface{}
func (*TaskCreationFilter) SkipArgsForCall ¶
func (fake *TaskCreationFilter) SkipArgsForCall(i int) filter.PR
func (*TaskCreationFilter) SkipCallCount ¶
func (fake *TaskCreationFilter) SkipCallCount() int
func (*TaskCreationFilter) SkipCalls ¶
func (fake *TaskCreationFilter) SkipCalls(stub func(filter.PR) bool)
func (*TaskCreationFilter) SkipReturns ¶
func (fake *TaskCreationFilter) SkipReturns(result1 bool)
func (*TaskCreationFilter) SkipReturnsOnCall ¶
func (fake *TaskCreationFilter) SkipReturnsOnCall(i int, result1 bool)
type TaskPublisher ¶
type TaskPublisher struct {
PublishCreateStub func(context.Context, pkg.PullRequest, string, pkg.PRDetails) bool
PublishOverrideStub func(context.Context, pkg.PullRequest, string, pkg.PRDetails) (bool, bool)
// contains filtered or unexported fields
}
func (*TaskPublisher) Invocations ¶
func (fake *TaskPublisher) Invocations() map[string][][]interface{}
func (*TaskPublisher) PublishCreate ¶
func (fake *TaskPublisher) PublishCreate(arg1 context.Context, arg2 pkg.PullRequest, arg3 string, arg4 pkg.PRDetails) bool
func (*TaskPublisher) PublishCreateArgsForCall ¶
func (fake *TaskPublisher) PublishCreateArgsForCall(i int) (context.Context, pkg.PullRequest, string, pkg.PRDetails)
func (*TaskPublisher) PublishCreateCallCount ¶
func (fake *TaskPublisher) PublishCreateCallCount() int
func (*TaskPublisher) PublishCreateCalls ¶
func (fake *TaskPublisher) PublishCreateCalls(stub func(context.Context, pkg.PullRequest, string, pkg.PRDetails) bool)
func (*TaskPublisher) PublishCreateReturns ¶
func (fake *TaskPublisher) PublishCreateReturns(result1 bool)
func (*TaskPublisher) PublishCreateReturnsOnCall ¶
func (fake *TaskPublisher) PublishCreateReturnsOnCall(i int, result1 bool)
func (*TaskPublisher) PublishOverride ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverride(arg1 context.Context, arg2 pkg.PullRequest, arg3 string, arg4 pkg.PRDetails) (bool, bool)
func (*TaskPublisher) PublishOverrideArgsForCall ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverrideArgsForCall(i int) (context.Context, pkg.PullRequest, string, pkg.PRDetails)
func (*TaskPublisher) PublishOverrideCallCount ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverrideCallCount() int
func (*TaskPublisher) PublishOverrideCalls ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverrideCalls(stub func(context.Context, pkg.PullRequest, string, pkg.PRDetails) (bool, bool))
func (*TaskPublisher) PublishOverrideReturns ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverrideReturns(result1 bool, result2 bool)
func (*TaskPublisher) PublishOverrideReturnsOnCall ¶ added in v0.3.0
func (fake *TaskPublisher) PublishOverrideReturnsOnCall(i int, result1 bool, result2 bool)
type TriggerPRReviewCommandSender ¶
type TriggerPRReviewCommandSender struct {
SendCommandStub func(context.Context, command.TriggerPRReviewCommand) error
// contains filtered or unexported fields
}
func (*TriggerPRReviewCommandSender) Invocations ¶
func (fake *TriggerPRReviewCommandSender) Invocations() map[string][][]interface{}
func (*TriggerPRReviewCommandSender) SendCommand ¶
func (fake *TriggerPRReviewCommandSender) SendCommand(arg1 context.Context, arg2 command.TriggerPRReviewCommand) error
func (*TriggerPRReviewCommandSender) SendCommandArgsForCall ¶
func (fake *TriggerPRReviewCommandSender) SendCommandArgsForCall(i int) (context.Context, command.TriggerPRReviewCommand)
func (*TriggerPRReviewCommandSender) SendCommandCallCount ¶
func (fake *TriggerPRReviewCommandSender) SendCommandCallCount() int
func (*TriggerPRReviewCommandSender) SendCommandCalls ¶
func (fake *TriggerPRReviewCommandSender) SendCommandCalls(stub func(context.Context, command.TriggerPRReviewCommand) error)
func (*TriggerPRReviewCommandSender) SendCommandReturns ¶
func (fake *TriggerPRReviewCommandSender) SendCommandReturns(result1 error)
func (*TriggerPRReviewCommandSender) SendCommandReturnsOnCall ¶
func (fake *TriggerPRReviewCommandSender) SendCommandReturnsOnCall(i int, result1 error)
type Trust ¶
type Trust struct {
IsTrustedStub func(context.Context, trust.PR) (trust.Result, error)
// contains filtered or unexported fields
}
func (*Trust) Invocations ¶
func (*Trust) IsTrustedArgsForCall ¶
func (*Trust) IsTrustedCallCount ¶
func (*Trust) IsTrustedCalls ¶
func (*Trust) IsTrustedReturns ¶
type Watcher ¶
type Watcher struct {
PollStub func(context.Context) error
// contains filtered or unexported fields
}