testutils

package
v0.0.0-...-3ae95b5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestLogger

func CreateTestLogger(t *testing.T) logr.Logger

CreateTestLogger creates a logr.Logger for tests which optionally (based on environment variables) can capture the log output and then only print it on test failure

func MatchError

func MatchError(err error) *errorMatcher

MatchError creates a matcher for asserting if an error is convertible to the expect error using errors.Is

Types

This section is empty.

Jump to

Keyboard shortcuts

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