mocks

package
v0.2.0 Latest Latest
Warning

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentReader

type ContentReader struct {
	GetContentStub func(context.Context, string, string, string, string) ([]byte, error)

	IsNotFoundStub func(error) bool

	ListDirStub func(context.Context, string, string, string, string) ([]string, error)

	ListPRFilesStub func(context.Context, string, string, int) ([]string, error)
	// contains filtered or unexported fields
}

func (*ContentReader) GetContent

func (fake *ContentReader) GetContent(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]byte, error)

func (*ContentReader) GetContentArgsForCall

func (fake *ContentReader) GetContentArgsForCall(i int) (context.Context, string, string, string, string)

func (*ContentReader) GetContentCallCount

func (fake *ContentReader) GetContentCallCount() int

func (*ContentReader) GetContentCalls

func (fake *ContentReader) GetContentCalls(stub func(context.Context, string, string, string, string) ([]byte, error))

func (*ContentReader) GetContentReturns

func (fake *ContentReader) GetContentReturns(result1 []byte, result2 error)

func (*ContentReader) GetContentReturnsOnCall

func (fake *ContentReader) GetContentReturnsOnCall(i int, result1 []byte, result2 error)

func (*ContentReader) Invocations

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

func (*ContentReader) IsNotFound

func (fake *ContentReader) IsNotFound(arg1 error) bool

func (*ContentReader) IsNotFoundArgsForCall

func (fake *ContentReader) IsNotFoundArgsForCall(i int) error

func (*ContentReader) IsNotFoundCallCount

func (fake *ContentReader) IsNotFoundCallCount() int

func (*ContentReader) IsNotFoundCalls

func (fake *ContentReader) IsNotFoundCalls(stub func(error) bool)

func (*ContentReader) IsNotFoundReturns

func (fake *ContentReader) IsNotFoundReturns(result1 bool)

func (*ContentReader) IsNotFoundReturnsOnCall

func (fake *ContentReader) IsNotFoundReturnsOnCall(i int, result1 bool)

func (*ContentReader) ListDir

func (fake *ContentReader) ListDir(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]string, error)

func (*ContentReader) ListDirArgsForCall

func (fake *ContentReader) ListDirArgsForCall(i int) (context.Context, string, string, string, string)

func (*ContentReader) ListDirCallCount

func (fake *ContentReader) ListDirCallCount() int

func (*ContentReader) ListDirCalls

func (fake *ContentReader) ListDirCalls(stub func(context.Context, string, string, string, string) ([]string, error))

func (*ContentReader) ListDirReturns

func (fake *ContentReader) ListDirReturns(result1 []string, result2 error)

func (*ContentReader) ListDirReturnsOnCall

func (fake *ContentReader) ListDirReturnsOnCall(i int, result1 []string, result2 error)

func (*ContentReader) ListPRFiles

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

func (*ContentReader) ListPRFilesArgsForCall

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

func (*ContentReader) ListPRFilesCallCount

func (fake *ContentReader) ListPRFilesCallCount() int

func (*ContentReader) ListPRFilesCalls

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

func (*ContentReader) ListPRFilesReturns

func (fake *ContentReader) ListPRFilesReturns(result1 []string, result2 error)

func (*ContentReader) ListPRFilesReturnsOnCall

func (fake *ContentReader) ListPRFilesReturnsOnCall(i int, result1 []string, result2 error)

type GitHubClient

type GitHubClient struct {
	GetContentStub func(context.Context, string, string, string, string) ([]byte, error)

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

	IsNotFoundStub func(error) bool

	ListDirStub func(context.Context, string, string, string, string) ([]string, error)

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

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

func (*GitHubClient) GetContent

func (fake *GitHubClient) GetContent(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]byte, error)

func (*GitHubClient) GetContentArgsForCall

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

func (*GitHubClient) GetContentCallCount

func (fake *GitHubClient) GetContentCallCount() int

func (*GitHubClient) GetContentCalls

func (fake *GitHubClient) GetContentCalls(stub func(context.Context, string, string, string, string) ([]byte, error))

func (*GitHubClient) GetContentReturns

func (fake *GitHubClient) GetContentReturns(result1 []byte, result2 error)

func (*GitHubClient) GetContentReturnsOnCall

func (fake *GitHubClient) GetContentReturnsOnCall(i int, result1 []byte, 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) IsNotFound

func (fake *GitHubClient) IsNotFound(arg1 error) bool

func (*GitHubClient) IsNotFoundArgsForCall

func (fake *GitHubClient) IsNotFoundArgsForCall(i int) error

func (*GitHubClient) IsNotFoundCallCount

func (fake *GitHubClient) IsNotFoundCallCount() int

func (*GitHubClient) IsNotFoundCalls

func (fake *GitHubClient) IsNotFoundCalls(stub func(error) bool)

func (*GitHubClient) IsNotFoundReturns

func (fake *GitHubClient) IsNotFoundReturns(result1 bool)

func (*GitHubClient) IsNotFoundReturnsOnCall

func (fake *GitHubClient) IsNotFoundReturnsOnCall(i int, result1 bool)

func (*GitHubClient) ListDir

func (fake *GitHubClient) ListDir(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]string, error)

func (*GitHubClient) ListDirArgsForCall

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

func (*GitHubClient) ListDirCallCount

func (fake *GitHubClient) ListDirCallCount() int

func (*GitHubClient) ListDirCalls

func (fake *GitHubClient) ListDirCalls(stub func(context.Context, string, string, string, string) ([]string, error))

func (*GitHubClient) ListDirReturns

func (fake *GitHubClient) ListDirReturns(result1 []string, result2 error)

func (*GitHubClient) ListDirReturnsOnCall

func (fake *GitHubClient) ListDirReturnsOnCall(i int, result1 []string, result2 error)

func (*GitHubClient) ListPRFiles

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

func (*GitHubClient) ListPRFilesArgsForCall

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

func (*GitHubClient) ListPRFilesCallCount

func (fake *GitHubClient) ListPRFilesCallCount() int

func (*GitHubClient) ListPRFilesCalls

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

func (*GitHubClient) ListPRFilesReturns

func (fake *GitHubClient) ListPRFilesReturns(result1 []string, result2 error)

func (*GitHubClient) ListPRFilesReturnsOnCall

func (fake *GitHubClient) ListPRFilesReturnsOnCall(i int, result1 []string, 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 {
	IncFilterSkippedStub func(string)

	IncPollCycleStub func(string)

	IncPublishedStub func(string)

	IncReposScannedStub func()
	// contains filtered or unexported fields
}

func (*Metrics) IncFilterSkipped

func (fake *Metrics) IncFilterSkipped(arg1 string)

func (*Metrics) IncFilterSkippedArgsForCall

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

func (*Metrics) IncFilterSkippedCallCount

func (fake *Metrics) IncFilterSkippedCallCount() int

func (*Metrics) IncFilterSkippedCalls

func (fake *Metrics) IncFilterSkippedCalls(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) IncPublished

func (fake *Metrics) IncPublished(arg1 string)

func (*Metrics) IncPublishedArgsForCall

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

func (*Metrics) IncPublishedCallCount

func (fake *Metrics) IncPublishedCallCount() int

func (*Metrics) IncPublishedCalls

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

func (*Metrics) IncReposScanned

func (fake *Metrics) IncReposScanned()

func (*Metrics) IncReposScannedCallCount

func (fake *Metrics) IncReposScannedCallCount() int

func (*Metrics) IncReposScannedCalls

func (fake *Metrics) IncReposScannedCalls(stub func())

func (*Metrics) Invocations

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

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