test

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeScheduler

type FakeScheduler struct {
	AddFunc    func(types.NamespacedName, time.Duration)
	ForgetFunc func(types.NamespacedName)
}

FakeScheduler allows stubbing the methods of scheduler.ScheduledWorkQueue in tests.

func (*FakeScheduler) Add

func (f *FakeScheduler) Add(obj types.NamespacedName, duration time.Duration)

func (*FakeScheduler) Forget

func (f *FakeScheduler) Forget(obj types.NamespacedName)

Jump to

Keyboard shortcuts

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