testutil

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestingT

type TestingT interface {
	Logf(string, ...interface{})
}

TestingT is a subset of the testing.T interface.

type WriteSyncer

type WriteSyncer struct{ T TestingT }

WriteSyncer is a zapcore.WriteSyncer that writes to the provided test logger.

func (WriteSyncer) Sync

func (WriteSyncer) Sync() error

Sync is a no-op.

func (WriteSyncer) Write

func (w WriteSyncer) Write(bs []byte) (int, error)

Write writes the provided bytes to the underlying TestingT.

Jump to

Keyboard shortcuts

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