mocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: BSD-2-Clause Imports: 9 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.

Index

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 (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) 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)
	// 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) Invocations

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

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)

Jump to

Keyboard shortcuts

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