test

package
v1.4.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 2 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(interface{}, time.Duration)
	ForgetFunc func(interface{})
}

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

func (*FakeScheduler) Add

func (f *FakeScheduler) Add(obj interface{}, duration time.Duration)

func (*FakeScheduler) Forget

func (f *FakeScheduler) Forget(obj interface{})

Jump to

Keyboard shortcuts

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