test

package
v1.0.2-0...-0a9ac6a Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() logger.Logger

func Timeout

func Timeout(t *testing.T, d time.Duration) (cancel func())

func UnsetEnvPrefix

func UnsetEnvPrefix(prefix string)

Types

type Closer

type Closer struct {
	// contains filtered or unexported fields
}

TODO use t.Cleanup instead.

func (*Closer) Add

func (tc *Closer) Add(fn func())

func (*Closer) AddFuncErr

func (tc *Closer) AddFuncErr(cleanup func() error)

func (*Closer) Close

func (tc *Closer) Close() error

Jump to

Keyboard shortcuts

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