testutil

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MPL-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFileEqual added in v0.3.0

func AssertFileEqual(t TestingT, fs afero.Fs, name string, expected string)

func NewLogger

func NewLogger() *zap.Logger

func ReadFileString added in v0.3.0

func ReadFileString(t TestingT, fs afero.Fs, name string) string

func ReadString added in v0.3.0

func ReadString(t TestingT, r io.Reader) string

func ReplaceGlobalLogger

func ReplaceGlobalLogger() *zap.Logger

func RunFlaky added in v0.3.0

func RunFlaky(t *testing.T, test func(t TestingT))

Types

type TestingT added in v0.3.0

type TestingT interface {
	mock.TestingT
}

Jump to

Keyboard shortcuts

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