testutil

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Race = false

Race reports if the race detector is enabled.

Variables

This section is empty.

Functions

func EnsureNoErrors added in v0.17.0

func EnsureNoErrors(t *testing.T, logs *observer.ObservedLogs)

EnsureNoErrors calls the t.Error if there are any ErrorLevel entries in logs.

func ShouldNotAllocate

func ShouldNotAllocate(t *testing.T, f func())

ShouldNotAllocate fails if f allocates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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