test

package
v0.22.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDB

func LoadDB[T metav1.ObjectMetaAccessor](ctx context.Context, dba *db.DB, p string, gvr types.GVR) error

func LoadRes

func LoadRes[T any](p string) (*T, error)

func MakeCollector

func MakeCollector(t *testing.T) *issues.Collector

func MakeConfig

func MakeConfig(t *testing.T) *config.Config

func MakeContext

func MakeContext(gvr, section string) context.Context

func MakeCtx

func MakeCtx(t *testing.T) context.Context

func MakeQty

func MakeQty(s string) *resource.Quantity

func MakeRes

func MakeRes(c, m string) v1.ResourceList

func NewTestDB

func NewTestDB() (*db.DB, error)

func ToQty

func ToQty(s string) resource.Quantity

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳