testutil

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(t *testing.T, closer io.Closer)

func FilterRace

func FilterRace(t *testing.T, race RacePolicy)

func FilterSpeed

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

func FilterStability

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

func FilterStabilityAndSpeed

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

func LogTree

func LogTree(t *testing.T, log string, indent int, title bool, args ...interface{})

func Logger

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

func LoggerWithRing

func LoggerWithRing(t testing.TB) (*zap.Logger, *zapring.Core, func())

func TestFilterGroupMetadataPayloadSent added in v1.12.1

func TestFilterGroupMetadataPayloadSent(t *testing.T, events <-chan *protocoltypes.GroupMetadataEvent) []*protocoltypes.GroupMetadataPayloadSent

Types

type RacePolicy

type RacePolicy string

RacePolicy enum

const (
	SkipIfRace RacePolicy = "skip-if-race"
	RunIfRace  RacePolicy = "run-if-race"
)

type Speed

type Speed string

Speed level enum

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

type Stability

type Stability string

Stability level enum

const (
	Stable       Stability = "stable"
	Flappy       Stability = "flappy"
	Broken       Stability = "broken"
	AnyStability Stability = "any"
)

Jump to

Keyboard shortcuts

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