adaptertesting

package
v1.5.14-0...-e6cd0ce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectValue

func ExpectValue(testCase string, value interface{}) gomock.Matcher

func Run

func Run(describe string, testCase Case, t *testing.T)

func RunScopes

func RunScopes(describe string, scopes []func() Scope, t *testing.T)

Types

type Case

type Case struct {
	Name                string
	Adapt               func() (resources.QueryFunc, error)
	ExpectWhileQuerying func(k8sClient *kubernetesmock.MockClientInt)
	ExpectWhileEnsuring func(k8sClient *kubernetesmock.MockClientInt)
	WantAdaptErr        bool
	WantQueryErr        bool
	WantEnsureErr       bool
}

type Scope

type Scope struct {
	SubscopesDescription string
	Subscopes            []func() Scope
	Case                 Case
}

Jump to

Keyboard shortcuts

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