statustest

package
v2.0.0-...-196241c Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detail

func Detail(empty bool) *status.Detail

Detail returns status.Detail filled with static random values.

func Details

func Details(empty bool) []status.Detail

Details returns several status.Detail messages filled with static random values.

func Status

func Status(empty bool) *status.Status

Status returns status.Status messages filled with static random values.

func TestCodes

func TestCodes(t *testing.T,
	localizer func(*status.Code) bool,
	globalizer func(code *status.Code),
	vals ...interface{},
)

TestCodes checks mapping of status codes to the numbers. Args must be pairs (status.Code, int).

Types

This section is empty.

Jump to

Keyboard shortcuts

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