sourcetoolfakes

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeToolImplementation

type FakeToolImplementation struct {
	CheckForksStub func(*options.Options) error

	CheckPolicyForkStub func(*options.Options) error

	ConfigureControlsStub func(models.VcsBackend, *models.Repository, []*models.Branch, []models.ControlConfiguration) error

	CreatePolicyPRStub func(*auth.Authenticator, *options.Options, *models.Repository, *policy.RepoPolicy) (*models.PullRequest, error)

	CreateRepositoryForkStub func(context.Context, *auth.Authenticator, *models.Repository, string) error

	GetBranchControlsStub func(context.Context, models.VcsBackend, *models.Branch) (*slsa.ControlSet, error)

	GetBranchControlsAtCommitStub func(context.Context, models.VcsBackend, *models.Branch, *models.Commit) (*slsa.ControlSet, error)

	GetPolicyStatusStub func(context.Context, *auth.Authenticator, *options.Options, *models.Repository) (*slsa.Control, error)

	SearchPullRequestStub func(context.Context, *auth.Authenticator, *models.Repository, string) (*models.PullRequest, error)

	VerifyOptionsForFullOnboardStub func(*auth.Authenticator, *options.Options) error
	// contains filtered or unexported fields
}

func (*FakeToolImplementation) CallOrder added in v0.7.1

func (fake *FakeToolImplementation) CallOrder() []string

func (*FakeToolImplementation) CheckForks

func (fake *FakeToolImplementation) CheckForks(arg1 *options.Options) error

func (*FakeToolImplementation) CheckForksArgs added in v0.7.1

func (*FakeToolImplementation) CheckForksArgsForCall

func (fake *FakeToolImplementation) CheckForksArgsForCall(i int) *options.Options

func (*FakeToolImplementation) CheckForksCallCount

func (fake *FakeToolImplementation) CheckForksCallCount() int

func (*FakeToolImplementation) CheckForksCalls

func (fake *FakeToolImplementation) CheckForksCalls(stub func(*options.Options) error)

func (*FakeToolImplementation) CheckForksReturns

func (fake *FakeToolImplementation) CheckForksReturns(result1 error)

func (*FakeToolImplementation) CheckForksReturnsOnCall

func (fake *FakeToolImplementation) CheckForksReturnsOnCall(i int, result1 error)

func (*FakeToolImplementation) CheckPolicyFork

func (fake *FakeToolImplementation) CheckPolicyFork(arg1 *options.Options) error

func (*FakeToolImplementation) CheckPolicyForkArgs added in v0.7.1

func (*FakeToolImplementation) CheckPolicyForkArgsForCall

func (fake *FakeToolImplementation) CheckPolicyForkArgsForCall(i int) *options.Options

func (*FakeToolImplementation) CheckPolicyForkCallCount

func (fake *FakeToolImplementation) CheckPolicyForkCallCount() int

func (*FakeToolImplementation) CheckPolicyForkCalls

func (fake *FakeToolImplementation) CheckPolicyForkCalls(stub func(*options.Options) error)

func (*FakeToolImplementation) CheckPolicyForkReturns

func (fake *FakeToolImplementation) CheckPolicyForkReturns(result1 error)

func (*FakeToolImplementation) CheckPolicyForkReturnsOnCall

func (fake *FakeToolImplementation) CheckPolicyForkReturnsOnCall(i int, result1 error)

func (*FakeToolImplementation) ConfigureControls

func (fake *FakeToolImplementation) ConfigureControls(arg1 models.VcsBackend, arg2 *models.Repository, arg3 []*models.Branch, arg4 []models.ControlConfiguration) error

func (*FakeToolImplementation) ConfigureControlsArgs added in v0.7.1

func (*FakeToolImplementation) ConfigureControlsArgsForCall

func (fake *FakeToolImplementation) ConfigureControlsArgsForCall(i int) (models.VcsBackend, *models.Repository, []*models.Branch, []models.ControlConfiguration)

func (*FakeToolImplementation) ConfigureControlsCallCount

func (fake *FakeToolImplementation) ConfigureControlsCallCount() int

func (*FakeToolImplementation) ConfigureControlsCalls

func (fake *FakeToolImplementation) ConfigureControlsCalls(stub func(models.VcsBackend, *models.Repository, []*models.Branch, []models.ControlConfiguration) error)

func (*FakeToolImplementation) ConfigureControlsReturns

func (fake *FakeToolImplementation) ConfigureControlsReturns(result1 error)

func (*FakeToolImplementation) ConfigureControlsReturnsOnCall

func (fake *FakeToolImplementation) ConfigureControlsReturnsOnCall(i int, result1 error)

func (*FakeToolImplementation) CreatePolicyPR

func (fake *FakeToolImplementation) CreatePolicyPR(arg1 *auth.Authenticator, arg2 *options.Options, arg3 *models.Repository, arg4 *policy.RepoPolicy) (*models.PullRequest, error)

func (*FakeToolImplementation) CreatePolicyPRArgs added in v0.7.1

func (*FakeToolImplementation) CreatePolicyPRArgsForCall

func (fake *FakeToolImplementation) CreatePolicyPRArgsForCall(i int) (*auth.Authenticator, *options.Options, *models.Repository, *policy.RepoPolicy)

func (*FakeToolImplementation) CreatePolicyPRCallCount

func (fake *FakeToolImplementation) CreatePolicyPRCallCount() int

func (*FakeToolImplementation) CreatePolicyPRCalls

func (*FakeToolImplementation) CreatePolicyPRReturns

func (fake *FakeToolImplementation) CreatePolicyPRReturns(result1 *models.PullRequest, result2 error)

func (*FakeToolImplementation) CreatePolicyPRReturnsOnCall

func (fake *FakeToolImplementation) CreatePolicyPRReturnsOnCall(i int, result1 *models.PullRequest, result2 error)

func (*FakeToolImplementation) CreateRepositoryFork

func (fake *FakeToolImplementation) CreateRepositoryFork(arg1 context.Context, arg2 *auth.Authenticator, arg3 *models.Repository, arg4 string) error

func (*FakeToolImplementation) CreateRepositoryForkArgs added in v0.7.1

func (*FakeToolImplementation) CreateRepositoryForkArgsForCall

func (fake *FakeToolImplementation) CreateRepositoryForkArgsForCall(i int) (context.Context, *auth.Authenticator, *models.Repository, string)

func (*FakeToolImplementation) CreateRepositoryForkCallCount

func (fake *FakeToolImplementation) CreateRepositoryForkCallCount() int

func (*FakeToolImplementation) CreateRepositoryForkCalls

func (fake *FakeToolImplementation) CreateRepositoryForkCalls(stub func(context.Context, *auth.Authenticator, *models.Repository, string) error)

func (*FakeToolImplementation) CreateRepositoryForkReturns

func (fake *FakeToolImplementation) CreateRepositoryForkReturns(result1 error)

func (*FakeToolImplementation) CreateRepositoryForkReturnsOnCall

func (fake *FakeToolImplementation) CreateRepositoryForkReturnsOnCall(i int, result1 error)

func (*FakeToolImplementation) GetBranchControls

func (fake *FakeToolImplementation) GetBranchControls(arg1 context.Context, arg2 models.VcsBackend, arg3 *models.Branch) (*slsa.ControlSet, error)

func (*FakeToolImplementation) GetBranchControlsArgs added in v0.7.1

func (*FakeToolImplementation) GetBranchControlsArgsForCall

func (fake *FakeToolImplementation) GetBranchControlsArgsForCall(i int) (context.Context, models.VcsBackend, *models.Branch)

func (*FakeToolImplementation) GetBranchControlsAtCommit added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommit(arg1 context.Context, arg2 models.VcsBackend, arg3 *models.Branch, arg4 *models.Commit) (*slsa.ControlSet, error)

func (*FakeToolImplementation) GetBranchControlsAtCommitArgs added in v0.7.1

func (fake *FakeToolImplementation) GetBranchControlsAtCommitArgs() []FakeToolImplementationGetBranchControlsAtCommitArgs

func (*FakeToolImplementation) GetBranchControlsAtCommitArgsForCall added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommitArgsForCall(i int) (context.Context, models.VcsBackend, *models.Branch, *models.Commit)

func (*FakeToolImplementation) GetBranchControlsAtCommitCallCount added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommitCallCount() int

func (*FakeToolImplementation) GetBranchControlsAtCommitCalls added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommitCalls(stub func(context.Context, models.VcsBackend, *models.Branch, *models.Commit) (*slsa.ControlSet, error))

func (*FakeToolImplementation) GetBranchControlsAtCommitReturns added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommitReturns(result1 *slsa.ControlSet, result2 error)

func (*FakeToolImplementation) GetBranchControlsAtCommitReturnsOnCall added in v0.7.0

func (fake *FakeToolImplementation) GetBranchControlsAtCommitReturnsOnCall(i int, result1 *slsa.ControlSet, result2 error)

func (*FakeToolImplementation) GetBranchControlsCallCount

func (fake *FakeToolImplementation) GetBranchControlsCallCount() int

func (*FakeToolImplementation) GetBranchControlsCalls

func (fake *FakeToolImplementation) GetBranchControlsCalls(stub func(context.Context, models.VcsBackend, *models.Branch) (*slsa.ControlSet, error))

func (*FakeToolImplementation) GetBranchControlsReturns

func (fake *FakeToolImplementation) GetBranchControlsReturns(result1 *slsa.ControlSet, result2 error)

func (*FakeToolImplementation) GetBranchControlsReturnsOnCall

func (fake *FakeToolImplementation) GetBranchControlsReturnsOnCall(i int, result1 *slsa.ControlSet, result2 error)

func (*FakeToolImplementation) GetPolicyStatus

func (fake *FakeToolImplementation) GetPolicyStatus(arg1 context.Context, arg2 *auth.Authenticator, arg3 *options.Options, arg4 *models.Repository) (*slsa.Control, error)

func (*FakeToolImplementation) GetPolicyStatusArgs added in v0.7.1

func (*FakeToolImplementation) GetPolicyStatusArgsForCall

func (fake *FakeToolImplementation) GetPolicyStatusArgsForCall(i int) (context.Context, *auth.Authenticator, *options.Options, *models.Repository)

func (*FakeToolImplementation) GetPolicyStatusCallCount

func (fake *FakeToolImplementation) GetPolicyStatusCallCount() int

func (*FakeToolImplementation) GetPolicyStatusCalls

func (fake *FakeToolImplementation) GetPolicyStatusCalls(stub func(context.Context, *auth.Authenticator, *options.Options, *models.Repository) (*slsa.Control, error))

func (*FakeToolImplementation) GetPolicyStatusReturns

func (fake *FakeToolImplementation) GetPolicyStatusReturns(result1 *slsa.Control, result2 error)

func (*FakeToolImplementation) GetPolicyStatusReturnsOnCall

func (fake *FakeToolImplementation) GetPolicyStatusReturnsOnCall(i int, result1 *slsa.Control, result2 error)

func (*FakeToolImplementation) Invocations

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

func (*FakeToolImplementation) SearchPullRequest

func (fake *FakeToolImplementation) SearchPullRequest(arg1 context.Context, arg2 *auth.Authenticator, arg3 *models.Repository, arg4 string) (*models.PullRequest, error)

func (*FakeToolImplementation) SearchPullRequestArgs added in v0.7.1

func (*FakeToolImplementation) SearchPullRequestArgsForCall

func (fake *FakeToolImplementation) SearchPullRequestArgsForCall(i int) (context.Context, *auth.Authenticator, *models.Repository, string)

func (*FakeToolImplementation) SearchPullRequestCallCount

func (fake *FakeToolImplementation) SearchPullRequestCallCount() int

func (*FakeToolImplementation) SearchPullRequestCalls

func (fake *FakeToolImplementation) SearchPullRequestCalls(stub func(context.Context, *auth.Authenticator, *models.Repository, string) (*models.PullRequest, error))

func (*FakeToolImplementation) SearchPullRequestReturns

func (fake *FakeToolImplementation) SearchPullRequestReturns(result1 *models.PullRequest, result2 error)

func (*FakeToolImplementation) SearchPullRequestReturnsOnCall

func (fake *FakeToolImplementation) SearchPullRequestReturnsOnCall(i int, result1 *models.PullRequest, result2 error)

func (*FakeToolImplementation) VerifyOptionsForFullOnboard

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboard(arg1 *auth.Authenticator, arg2 *options.Options) error

func (*FakeToolImplementation) VerifyOptionsForFullOnboardArgs added in v0.7.1

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardArgs() []FakeToolImplementationVerifyOptionsForFullOnboardArgs

func (*FakeToolImplementation) VerifyOptionsForFullOnboardArgsForCall

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardArgsForCall(i int) (*auth.Authenticator, *options.Options)

func (*FakeToolImplementation) VerifyOptionsForFullOnboardCallCount

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardCallCount() int

func (*FakeToolImplementation) VerifyOptionsForFullOnboardCalls

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardCalls(stub func(*auth.Authenticator, *options.Options) error)

func (*FakeToolImplementation) VerifyOptionsForFullOnboardReturns

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardReturns(result1 error)

func (*FakeToolImplementation) VerifyOptionsForFullOnboardReturnsOnCall

func (fake *FakeToolImplementation) VerifyOptionsForFullOnboardReturnsOnCall(i int, result1 error)

type FakeToolImplementationCheckForksArgs added in v0.7.1

type FakeToolImplementationCheckForksArgs struct {
	Arg1 *options.Options
}

FakeToolImplementationCheckForksArgs holds the arguments of one call to CheckForks.

type FakeToolImplementationCheckPolicyForkArgs added in v0.7.1

type FakeToolImplementationCheckPolicyForkArgs struct {
	Arg1 *options.Options
}

FakeToolImplementationCheckPolicyForkArgs holds the arguments of one call to CheckPolicyFork.

type FakeToolImplementationConfigureControlsArgs added in v0.7.1

type FakeToolImplementationConfigureControlsArgs struct {
	Arg1 models.VcsBackend
	Arg2 *models.Repository
	Arg3 []*models.Branch
	Arg4 []models.ControlConfiguration
}

FakeToolImplementationConfigureControlsArgs holds the arguments of one call to ConfigureControls.

type FakeToolImplementationCreatePolicyPRArgs added in v0.7.1

type FakeToolImplementationCreatePolicyPRArgs struct {
	Arg1 *auth.Authenticator
	Arg2 *options.Options
	Arg3 *models.Repository
	Arg4 *policy.RepoPolicy
}

FakeToolImplementationCreatePolicyPRArgs holds the arguments of one call to CreatePolicyPR.

type FakeToolImplementationCreateRepositoryForkArgs added in v0.7.1

type FakeToolImplementationCreateRepositoryForkArgs struct {
	Arg1 context.Context
	Arg2 *auth.Authenticator
	Arg3 *models.Repository
	Arg4 string
}

FakeToolImplementationCreateRepositoryForkArgs holds the arguments of one call to CreateRepositoryFork.

type FakeToolImplementationGetBranchControlsArgs added in v0.7.1

type FakeToolImplementationGetBranchControlsArgs struct {
	Arg1 context.Context
	Arg2 models.VcsBackend
	Arg3 *models.Branch
}

FakeToolImplementationGetBranchControlsArgs holds the arguments of one call to GetBranchControls.

type FakeToolImplementationGetBranchControlsAtCommitArgs added in v0.7.1

type FakeToolImplementationGetBranchControlsAtCommitArgs struct {
	Arg1 context.Context
	Arg2 models.VcsBackend
	Arg3 *models.Branch
	Arg4 *models.Commit
}

FakeToolImplementationGetBranchControlsAtCommitArgs holds the arguments of one call to GetBranchControlsAtCommit.

type FakeToolImplementationGetPolicyStatusArgs added in v0.7.1

type FakeToolImplementationGetPolicyStatusArgs struct {
	Arg1 context.Context
	Arg2 *auth.Authenticator
	Arg3 *options.Options
	Arg4 *models.Repository
}

FakeToolImplementationGetPolicyStatusArgs holds the arguments of one call to GetPolicyStatus.

type FakeToolImplementationSearchPullRequestArgs added in v0.7.1

type FakeToolImplementationSearchPullRequestArgs struct {
	Arg1 context.Context
	Arg2 *auth.Authenticator
	Arg3 *models.Repository
	Arg4 string
}

FakeToolImplementationSearchPullRequestArgs holds the arguments of one call to SearchPullRequest.

type FakeToolImplementationVerifyOptionsForFullOnboardArgs added in v0.7.1

type FakeToolImplementationVerifyOptionsForFullOnboardArgs struct {
	Arg1 *auth.Authenticator
	Arg2 *options.Options
}

FakeToolImplementationVerifyOptionsForFullOnboardArgs holds the arguments of one call to VerifyOptionsForFullOnboard.

Jump to

Keyboard shortcuts

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