testing

package
v0.0.0-...-7cc1d6a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 5 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. TODO(taragu) remove this after removing all ClearAll() calls from serving and eventing

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