testing

package
Version: v99.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL