testutil

package
v2.152.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package testutil contains testing helpers (logging, slow skipping).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterSpeed added in v2.130.0

func FilterSpeed(t *testing.T, speed Speed)

func FilterStability added in v2.130.0

func FilterStability(t *testing.T, stability Stability)

func FilterStabilityAndSpeed added in v2.130.0

func FilterStabilityAndSpeed(t *testing.T, stability Stability, speed Speed)

func Logger

func Logger(t *testing.T) (*zap.Logger, func())

Types

type Speed added in v2.130.0

type Speed string

Speed level enum

const (
	Fast     Speed = "fast"
	Slow     Speed = "slow"
	AnySpeed Speed = "any"
)

type Stability added in v2.130.0

type Stability string

Stability level enum

const (
	Stable       Stability = "stable"
	Unstable     Stability = "unstable"
	Broken       Stability = "broken"
	AnyStability Stability = "any"
)

Jump to

Keyboard shortcuts

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