fakes

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	CreateRepositoryErr         error
	CreateRepositoryCalledWith  map[int][]any
	CreateRepositoryCallCount   int
	CreatePullRequestErr        error
	CreatePullRequestID         int
	CreatePullRequestCalledWith map[int][]any
	CreatePullRequestCallCount  int
}

func NewProvider

func NewProvider() *Provider

func (*Provider) CreateBranchProtection added in v0.4.1

func (p *Provider) CreateBranchProtection(ctx context.Context, obj mpasv1alpha1.Repository) error

func (*Provider) CreatePullRequest

func (p *Provider) CreatePullRequest(ctx context.Context, branch string, sync deliveryv1alpha1.Sync, repository mpasv1alpha1.Repository) (int, error)

func (*Provider) CreatePullRequestCallArgsForNumber

func (p *Provider) CreatePullRequestCallArgsForNumber(i int) ([]any, error)

func (*Provider) CreateRepository

func (p *Provider) CreateRepository(ctx context.Context, obj mpasv1alpha1.Repository) error

func (*Provider) CreateRepositoryCallArgsForNumber

func (p *Provider) CreateRepositoryCallArgsForNumber(i int) ([]any, error)

Jump to

Keyboard shortcuts

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