keycollector

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package keycollector features a utility that is used for testing scheduler-related logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerWorkqueueKeyCollector

type SchedulerWorkqueueKeyCollector struct {
	// contains filtered or unexported fields
}

SchedulerWorkqueueKeyCollector helps collect keys from a scheduler work queue for testing purposes.

func NewSchedulerWorkqueueKeyCollector

NewSchedulerWorkqueueKeyCollector returns a new SchedulerWorkqueueKeyCollector.

func (*SchedulerWorkqueueKeyCollector) IsPresent

func (kc *SchedulerWorkqueueKeyCollector) IsPresent(keys ...string) (isAllPresent bool, absentKeys []string)

IsPresent returns whether a given key is has been collected.

func (*SchedulerWorkqueueKeyCollector) Len

Len returns the count of collected keys.

func (*SchedulerWorkqueueKeyCollector) Reset

func (kc *SchedulerWorkqueueKeyCollector) Reset()

Reset clears all the collected keys.

func (*SchedulerWorkqueueKeyCollector) Run

Run runs the SchedulerWorkqueueKeyCollector.

Jump to

Keyboard shortcuts

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