testing

package
v1.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codec

func Codec(gvs ...schema.GroupVersion) runtime.Codec

Codec returns the codec for the API version to test against, as set by the KUBE_TEST_API_TYPE env var.

func FuzzerFor

func FuzzerFor(funcs []interface{}, src rand.Source) *fuzz.Fuzzer

FuzzerFor can randomly populate api objects that are destined for version.

func GenericFuzzerFuncs

func GenericFuzzerFuncs(t TestingCommon) []interface{}

Types

type TestingCommon

type TestingCommon interface {
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
}

TestingCommon abstracts testing.T and testing.B

Jump to

Keyboard shortcuts

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