mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubClient

type GitHubClient struct {
	AddLabelStub func(context.Context, string, string, int, string) error

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

	GetMaintainerConfigStub func(context.Context, string, string) (maintainerconfig.MaintainerConfig, error)

	GetPRDetailsStub func(context.Context, string, string, int) (pkg.PRDetails, error)

	ListPRFilesStub func(context.Context, string, string, int) ([]pkg.PRFile, error)

	SearchPRsStub func(context.Context, string, time.DateTime, int) (pkg.SearchResult, error)
	// contains filtered or unexported fields
}

func (*GitHubClient) AddLabel added in v0.7.0

func (fake *GitHubClient) AddLabel(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 string) error

func (*GitHubClient) AddLabelArgsForCall added in v0.7.0

func (fake *GitHubClient) AddLabelArgsForCall(i int) (context.Context, string, string, int, string)

func (*GitHubClient) AddLabelCallCount added in v0.7.0

func (fake *GitHubClient) AddLabelCallCount() int

func (*GitHubClient) AddLabelCalls added in v0.7.0

func (fake *GitHubClient) AddLabelCalls(stub func(context.Context, string, string, int, string) error)

func (*GitHubClient) AddLabelReturns added in v0.7.0

func (fake *GitHubClient) AddLabelReturns(result1 error)

func (*GitHubClient) AddLabelReturnsOnCall added in v0.7.0

func (fake *GitHubClient) AddLabelReturnsOnCall(i int, result1 error)

func (*GitHubClient) EnableAutoMerge added in v0.5.0

func (fake *GitHubClient) EnableAutoMerge(arg1 context.Context, arg2 string, arg3 string, arg4 int) error

func (*GitHubClient) EnableAutoMergeArgsForCall added in v0.5.0

func (fake *GitHubClient) EnableAutoMergeArgsForCall(i int) (context.Context, string, string, int)

func (*GitHubClient) EnableAutoMergeCallCount added in v0.5.0

func (fake *GitHubClient) EnableAutoMergeCallCount() int

func (*GitHubClient) EnableAutoMergeCalls added in v0.5.0

func (fake *GitHubClient) EnableAutoMergeCalls(stub func(context.Context, string, string, int) error)

func (*GitHubClient) EnableAutoMergeReturns added in v0.5.0

func (fake *GitHubClient) EnableAutoMergeReturns(result1 error)

func (*GitHubClient) EnableAutoMergeReturnsOnCall added in v0.5.0

func (fake *GitHubClient) EnableAutoMergeReturnsOnCall(i int, result1 error)

func (*GitHubClient) GetMaintainerConfig added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfig(arg1 context.Context, arg2 string, arg3 string) (maintainerconfig.MaintainerConfig, error)

func (*GitHubClient) GetMaintainerConfigArgsForCall added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfigArgsForCall(i int) (context.Context, string, string)

func (*GitHubClient) GetMaintainerConfigCallCount added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfigCallCount() int

func (*GitHubClient) GetMaintainerConfigCalls added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfigCalls(stub func(context.Context, string, string) (maintainerconfig.MaintainerConfig, error))

func (*GitHubClient) GetMaintainerConfigReturns added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfigReturns(result1 maintainerconfig.MaintainerConfig, result2 error)

func (*GitHubClient) GetMaintainerConfigReturnsOnCall added in v0.7.0

func (fake *GitHubClient) GetMaintainerConfigReturnsOnCall(i int, result1 maintainerconfig.MaintainerConfig, result2 error)

func (*GitHubClient) GetPRDetails

func (fake *GitHubClient) GetPRDetails(arg1 context.Context, arg2 string, arg3 string, arg4 int) (pkg.PRDetails, error)

func (*GitHubClient) GetPRDetailsArgsForCall

func (fake *GitHubClient) GetPRDetailsArgsForCall(i int) (context.Context, string, string, int)

func (*GitHubClient) GetPRDetailsCallCount

func (fake *GitHubClient) GetPRDetailsCallCount() int

func (*GitHubClient) GetPRDetailsCalls

func (fake *GitHubClient) GetPRDetailsCalls(stub func(context.Context, string, string, int) (pkg.PRDetails, error))

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) ListPRFiles added in v0.7.0

func (fake *GitHubClient) ListPRFiles(arg1 context.Context, arg2 string, arg3 string, arg4 int) ([]pkg.PRFile, error)

func (*GitHubClient) ListPRFilesArgsForCall added in v0.7.0

func (fake *GitHubClient) ListPRFilesArgsForCall(i int) (context.Context, string, string, int)

func (*GitHubClient) ListPRFilesCallCount added in v0.7.0

func (fake *GitHubClient) ListPRFilesCallCount() int

func (*GitHubClient) ListPRFilesCalls added in v0.7.0

func (fake *GitHubClient) ListPRFilesCalls(stub func(context.Context, string, string, int) ([]pkg.PRFile, error))

func (*GitHubClient) ListPRFilesReturns added in v0.7.0

func (fake *GitHubClient) ListPRFilesReturns(result1 []pkg.PRFile, result2 error)

func (*GitHubClient) ListPRFilesReturnsOnCall added in v0.7.0

func (fake *GitHubClient) ListPRFilesReturnsOnCall(i int, result1 []pkg.PRFile, result2 error)

func (*GitHubClient) SearchPRs

func (fake *GitHubClient) SearchPRs(arg1 context.Context, arg2 string, arg3 time.DateTime, arg4 int) (pkg.SearchResult, error)

func (*GitHubClient) SearchPRsArgsForCall

func (fake *GitHubClient) SearchPRsArgsForCall(i int) (context.Context, string, time.DateTime, int)

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)

	IncWebhookDeliveryStub func(string)

	IncWebhookSignatureRejectedStub func()

	ObserveWebhookDispatchLatencyStub func(float64)
	// contains filtered or unexported fields
}

func (*Metrics) IncPRPublished

func (fake *Metrics) IncPRPublished(arg1 string)

func (*Metrics) IncPRPublishedArgsForCall

func (fake *Metrics) IncPRPublishedArgsForCall(i int) string

func (*Metrics) IncPRPublishedCallCount

func (fake *Metrics) IncPRPublishedCallCount() int

func (*Metrics) IncPRPublishedCalls

func (fake *Metrics) IncPRPublishedCalls(stub func(string))

func (*Metrics) IncPollCycle

func (fake *Metrics) IncPollCycle(arg1 string)

func (*Metrics) IncPollCycleArgsForCall

func (fake *Metrics) IncPollCycleArgsForCall(i int) string

func (*Metrics) IncPollCycleCallCount

func (fake *Metrics) IncPollCycleCallCount() int

func (*Metrics) IncPollCycleCalls

func (fake *Metrics) IncPollCycleCalls(stub func(string))

func (*Metrics) IncWebhookDelivery added in v0.6.0

func (fake *Metrics) IncWebhookDelivery(arg1 string)

func (*Metrics) IncWebhookDeliveryArgsForCall added in v0.6.0

func (fake *Metrics) IncWebhookDeliveryArgsForCall(i int) string

func (*Metrics) IncWebhookDeliveryCallCount added in v0.6.0

func (fake *Metrics) IncWebhookDeliveryCallCount() int

func (*Metrics) IncWebhookDeliveryCalls added in v0.6.0

func (fake *Metrics) IncWebhookDeliveryCalls(stub func(string))

func (*Metrics) IncWebhookSignatureRejected added in v0.6.0

func (fake *Metrics) IncWebhookSignatureRejected()

func (*Metrics) IncWebhookSignatureRejectedCallCount added in v0.6.0

func (fake *Metrics) IncWebhookSignatureRejectedCallCount() int

func (*Metrics) IncWebhookSignatureRejectedCalls added in v0.6.0

func (fake *Metrics) IncWebhookSignatureRejectedCalls(stub func())

func (*Metrics) Invocations

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

func (*Metrics) ObserveWebhookDispatchLatency added in v0.6.0

func (fake *Metrics) ObserveWebhookDispatchLatency(arg1 float64)

func (*Metrics) ObserveWebhookDispatchLatencyArgsForCall added in v0.6.0

func (fake *Metrics) ObserveWebhookDispatchLatencyArgsForCall(i int) float64

func (*Metrics) ObserveWebhookDispatchLatencyCallCount added in v0.6.0

func (fake *Metrics) ObserveWebhookDispatchLatencyCallCount() int

func (*Metrics) ObserveWebhookDispatchLatencyCalls added in v0.6.0

func (fake *Metrics) ObserveWebhookDispatchLatencyCalls(stub func(float64))

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

func (fake *TaskCreationFilter) Skip(arg1 filter.PR) bool

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 (*TriggerPRReviewCommandSender) SendCommandArgsForCall

func (*TriggerPRReviewCommandSender) SendCommandCallCount

func (fake *TriggerPRReviewCommandSender) SendCommandCallCount() int

func (*TriggerPRReviewCommandSender) SendCommandCalls

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 (fake *Trust) Invocations() map[string][][]interface{}

func (*Trust) IsTrusted

func (fake *Trust) IsTrusted(arg1 context.Context, arg2 trust.PR) (trust.Result, error)

func (*Trust) IsTrustedArgsForCall

func (fake *Trust) IsTrustedArgsForCall(i int) (context.Context, trust.PR)

func (*Trust) IsTrustedCallCount

func (fake *Trust) IsTrustedCallCount() int

func (*Trust) IsTrustedCalls

func (fake *Trust) IsTrustedCalls(stub func(context.Context, trust.PR) (trust.Result, error))

func (*Trust) IsTrustedReturns

func (fake *Trust) IsTrustedReturns(result1 trust.Result, result2 error)

func (*Trust) IsTrustedReturnsOnCall

func (fake *Trust) IsTrustedReturnsOnCall(i int, result1 trust.Result, result2 error)

type Watcher

type Watcher struct {
	PollStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*Watcher) Invocations

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

func (*Watcher) Poll

func (fake *Watcher) Poll(arg1 context.Context) error

func (*Watcher) PollArgsForCall

func (fake *Watcher) PollArgsForCall(i int) context.Context

func (*Watcher) PollCallCount

func (fake *Watcher) PollCallCount() int

func (*Watcher) PollCalls

func (fake *Watcher) PollCalls(stub func(context.Context) error)

func (*Watcher) PollReturns

func (fake *Watcher) PollReturns(result1 error)

func (*Watcher) PollReturnsOnCall

func (fake *Watcher) PollReturnsOnCall(i int, result1 error)

type WebhookMetrics added in v0.6.0

type WebhookMetrics struct {
	IncWebhookDeliveryStub func(string)

	IncWebhookSignatureRejectedStub func()

	ObserveWebhookDispatchLatencyStub func(float64)
	// contains filtered or unexported fields
}

func (*WebhookMetrics) IncWebhookDelivery added in v0.6.0

func (fake *WebhookMetrics) IncWebhookDelivery(arg1 string)

func (*WebhookMetrics) IncWebhookDeliveryArgsForCall added in v0.6.0

func (fake *WebhookMetrics) IncWebhookDeliveryArgsForCall(i int) string

func (*WebhookMetrics) IncWebhookDeliveryCallCount added in v0.6.0

func (fake *WebhookMetrics) IncWebhookDeliveryCallCount() int

func (*WebhookMetrics) IncWebhookDeliveryCalls added in v0.6.0

func (fake *WebhookMetrics) IncWebhookDeliveryCalls(stub func(string))

func (*WebhookMetrics) IncWebhookSignatureRejected added in v0.6.0

func (fake *WebhookMetrics) IncWebhookSignatureRejected()

func (*WebhookMetrics) IncWebhookSignatureRejectedCallCount added in v0.6.0

func (fake *WebhookMetrics) IncWebhookSignatureRejectedCallCount() int

func (*WebhookMetrics) IncWebhookSignatureRejectedCalls added in v0.6.0

func (fake *WebhookMetrics) IncWebhookSignatureRejectedCalls(stub func())

func (*WebhookMetrics) Invocations added in v0.6.0

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

func (*WebhookMetrics) ObserveWebhookDispatchLatency added in v0.6.0

func (fake *WebhookMetrics) ObserveWebhookDispatchLatency(arg1 float64)

func (*WebhookMetrics) ObserveWebhookDispatchLatencyArgsForCall added in v0.6.0

func (fake *WebhookMetrics) ObserveWebhookDispatchLatencyArgsForCall(i int) float64

func (*WebhookMetrics) ObserveWebhookDispatchLatencyCallCount added in v0.6.0

func (fake *WebhookMetrics) ObserveWebhookDispatchLatencyCallCount() int

func (*WebhookMetrics) ObserveWebhookDispatchLatencyCalls added in v0.6.0

func (fake *WebhookMetrics) ObserveWebhookDispatchLatencyCalls(stub func(float64))

Jump to

Keyboard shortcuts

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