wctest

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configuration

func Configuration() *conf.Configuration

func InitBuffWriteSyncer

func InitBuffWriteSyncer(opts ...zap.Option) *logtest.Buffer

InitBuffWriteSyncer returns a Memory WriteSyncer for log test

func InitGlobalLogger

func InitGlobalLogger(disableStacktrace bool)

InitGlobalLogger sets a sample logger as the global logger for pkg log test.

func RunWait

func RunWait(t *testing.T, timeout time.Duration, fns ...func() error) error

RunWait runs the given functions in a goroutine and waits for a time whatever a function is blocking.

Types

This section is empty.

Jump to

Keyboard shortcuts

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