Documentation ¶
Index ¶
- func Assert(cond bool)
- func AssertNoError(err error)
- func AssertNoErrorf(err error, msg string, args ...interface{})
- func Assertf(cond bool, msg string, args ...interface{})
- func Fail()
- func Failf(msg string, args ...interface{})
- func Ignore(v interface{})
- func IgnoreClose(cr io.Closer)
- func IgnoreError(err error)
- func Require(cond bool, param string)
- func Requiref(cond bool, param string, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoErrorf ¶
AssertNoErrorf will Fail if the error is non-nil, adding the additional log message.
func Assertf ¶
Assertf checks a condition and Failfs if it is false, formatting and logging the given message.
func Failf ¶
func Failf(msg string, args ...interface{})
Failf unconditionally abandons the process, formatting and logging the given message.
func Ignore ¶
func Ignore(v interface{})
Ignore explicitly ignores a value. This is similar to `_ = x`, but tells linters ignoring is intentional.
func IgnoreClose ¶
IgnoreClose closes and ignores the returned error. This makes defer closes easier.
func IgnoreError ¶
func IgnoreError(err error)
IgnoreError explicitly ignores an error. This is similar to `_ = x`, but tells linters ignoring is intentional. This routine is specifically for ignoring errors which is potentially more risky, and so logs at a higher level.
Types ¶
This section is empty.