Documentation ¶
Overview ¶
Package testutil contains testing helpers (logging, slow skipping).
Index ¶
- func Close(t *testing.T, closer io.Closer)
- func FilterRace(t *testing.T, race RacePolicy)
- func FilterSpeed(t *testing.T, speed Speed)
- func FilterStability(t *testing.T, stability Stability)
- func FilterStabilityAndSpeed(t *testing.T, stability Stability, speed Speed)
- func LogTree(t *testing.T, log string, indent int, title bool, args ...interface{})
- func Logger(t testing.TB) (*zap.Logger, func())
- func LoggerWithRing(t testing.TB) (*zap.Logger, *zapring.Core, func())
- func TestFilterGroupMetadataPayloadSent(t *testing.T, events <-chan *protocoltypes.GroupMetadataEvent) []*protocoltypes.GroupMetadataPayloadSent
- type RacePolicy
- type Speed
- type Stability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRace ¶
func FilterRace(t *testing.T, race RacePolicy)
func FilterSpeed ¶
func FilterStability ¶
func FilterStabilityAndSpeed ¶
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" )
Click to show internal directories.
Click to hide internal directories.