mocks

package
v0.0.0-...-0390e60 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThrottlerManager

type ThrottlerManager struct {
	mock.Mock
}

ThrottlerManager is an autogenerated mock type for the ThrottlerManager type

func NewThrottlerManager

func NewThrottlerManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ThrottlerManager

NewThrottlerManager creates a new instance of ThrottlerManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ThrottlerManager) Throttle

func (_m *ThrottlerManager) Throttle(repoBranch string, commitTime time.Time) bool

Throttle provides a mock function with given fields: repoBranch, commitTime

func (*ThrottlerManager) UpdateThrottler

func (_m *ThrottlerManager) UpdateThrottler(repoBranch string, commitTime time.Time, throttlerCfg *config.ThrottlerCfg)

UpdateThrottler provides a mock function with given fields: repoBranch, commitTime, throttlerCfg

type Verifier

type Verifier struct {
	mock.Mock
}

Verifier is an autogenerated mock type for the Verifier type

func NewVerifier

func NewVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Verifier

NewVerifier creates a new instance of Verifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Verifier) Cleanup

func (_m *Verifier) Cleanup(ctx context.Context, ci *gerrit.ChangeInfo, cleanupPatchsetID int64)

Cleanup provides a mock function with given fields: ctx, ci, cleanupPatchsetID

func (*Verifier) Name

func (_m *Verifier) Name() string

Name provides a mock function with given fields:

func (*Verifier) Verify

func (_m *Verifier) Verify(ctx context.Context, ci *gerrit.ChangeInfo, startTime int64) (types.VerifierState, string, error)

Verify provides a mock function with given fields: ctx, ci, startTime

type VerifiersManager

type VerifiersManager struct {
	mock.Mock
}

VerifiersManager is an autogenerated mock type for the VerifiersManager type

func NewVerifiersManager

func NewVerifiersManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *VerifiersManager

NewVerifiersManager creates a new instance of VerifiersManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VerifiersManager) GetVerifiers

func (_m *VerifiersManager) GetVerifiers(ctx context.Context, cfg *config.SkCQCfg, ci *gerrit.ChangeInfo, isSubmittedTogetherChange bool, configReader config.ConfigReader) ([]types.Verifier, []string, error)

GetVerifiers provides a mock function with given fields: ctx, cfg, ci, isSubmittedTogetherChange, configReader

func (*VerifiersManager) RunVerifiers

func (_m *VerifiersManager) RunVerifiers(ctx context.Context, ci *gerrit.ChangeInfo, verifiers []types.Verifier, startTime int64) []*types.VerifierStatus

RunVerifiers provides a mock function with given fields: ctx, ci, verifiers, startTime

Jump to

Keyboard shortcuts

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