utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel

func LogLevel(level string) (apilogging.Level, error)

LogLevel returns the log level from a string representation.

func LogLevelString

func LogLevelString(level apilogging.Level) string

LogLevelString returns String repressentation of given log level

func VerifyEmpty

func VerifyEmpty(t *testing.T, in interface{}, msgAndArgs ...interface{})

VerifyEmpty Verifies if input is empty, fails test if not empty

func VerifyFalse

func VerifyFalse(t *testing.T, input bool, msgAndArgs ...interface{})

VerifyFalse verifies if boolean input is false, if true then fails test

func VerifyNotEmpty

func VerifyNotEmpty(t *testing.T, in interface{}, msgAndArgs ...interface{})

VerifyNotEmpty Verifies if input is not empty, fails test if empty

func VerifyTrue

func VerifyTrue(t *testing.T, input bool, msgAndArgs ...interface{})

VerifyTrue verifies if boolean input is true, if false then fails test

Types

This section is empty.

Jump to

Keyboard shortcuts

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