testing

package
v0.0.0-...-9c81b8b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAction

func AssertAction(t *testing.T, expected, actual kubetesting.Action)

AssertAction will assert that expected action should be equal with actual action NOTE(liubog2008): now only create, update and patch actions will assert content of action.

func AssertActionCounts

func AssertActionCounts(t *testing.T, expected map[string]int, actions []kubetesting.Action)

AssertActionCounts can count all kinds of actions and compare with expected count

func AssertActions

func AssertActions(t *testing.T, expected, actual []kubetesting.Action, ignored []VerbAndResource)

AssertActions will assert a collection of actions Some unimportant actual actions can be filtered by field "ignored"

Types

type VerbAndResource

type VerbAndResource struct {
	// Verb defines action verb
	Verb string
	// Resource defines action resource
	Resource string
}

VerbAndResource defines action verb and resource

Jump to

Keyboard shortcuts

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