testing

package
v0.0.0-...-20d7626 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAll

func ClearAll()

ClearAll removes all the testing loggers. `go test -count=X` executes runs in the same process, thus the map persists between the runs, but the `t` will no longer be valid and will cause a panic deep inside testing code.

func TestContextWithLogger

func TestContextWithLogger(t *testing.T) context.Context

TestContextWithLogger returns a context with a logger to be used in tests

func TestLogger

func TestLogger(t *testing.T) *zap.SugaredLogger

TestLogger gets a logger to use in unit and end to end tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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