Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThrottlerManager ¶
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 ¶
Verifier is an autogenerated mock type for the Verifier type
func NewVerifier ¶
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 ¶
Cleanup provides a mock function with given fields: ctx, ci, cleanupPatchsetID
type VerifiersManager ¶
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