testing

package
Version: v0.0.0-...-381424b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 4 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 zaptest.TestingT) context.Context

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

func TestLogger

func TestLogger(t zaptest.TestingT) *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
y or Y : Canonical URL