warnings

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Printf = logrus.Warnf

Printf can be overridden for testing

Functions

This section is empty.

Types

type Collect

type Collect struct {
	Warnings []string
}

Collect is used for testing to collect warnings instead of printing them

func (*Collect) Warnf

func (l *Collect) Warnf(format string, args ...interface{})

Warnf collects all the warnings for unit tests

type Warner

type Warner func(format string, args ...interface{})

Warner prints warnings

Jump to

Keyboard shortcuts

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