mock

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeConfigClient

func FakeConfigClient(getConfig func(owner, repo string) (plugins.Configuration, error)) plugins.PluginConfigClient

func FakeGitIssueClient

func FakeGitIssueClient(
	createIssueComment func(context.Context, plugins.GitIssueComment) error,
	addLabel func(context.Context, []plugins.Label) error,
	removeLabel func(ctx context.Context, repo plugins.GitRepo, issue plugins.GitIssue, l plugins.Label) error,
) plugins.GitIssueClient

func FakeGitPRClient

func FakeGitPRClient(
	listFiles func(context.Context, plugins.GitRepo, plugins.GitPullRequest) ([]plugins.GitCommitFile, error),
	getPR func(ctx context.Context, repo plugins.GitRepo, number int) (plugins.GitPullRequest, error),
	mergePR func(ctx context.Context, repo plugins.GitRepo, number int, method string) error,
) plugins.GitPRClient

func FakeLoggerClient

func FakeLoggerClient() plugins.LoggerClient

func FakeOwnerClient

func FakeOwnerClient(
	getOwners func(owner, repo, file string) (plugins.OwnersConfiguration, error),
) plugins.OwnersClient

func FakeRepoClient

func FakeRepoClient(funcs map[string]interface{}) plugins.GitRepoClient

func FakeSearchClient

func FakeSearchClient(funcs map[string]interface{}) plugins.GitSearchClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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