Documentation ¶
Index ¶
- func Assert(cond bool)deprecated
- func AssertNoError(err error)deprecated
- func AssertNoErrorf(err error, msg string, args ...interface{})
- func Assertf(cond bool, msg string, args ...interface{})
- func Fail()deprecated
- 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)deprecated
- func Requiref(cond bool, param string, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoError
deprecated
func AssertNoError(err error)
AssertNoError will Fail if the error is non-nil.
Deprecated: Use AssertNoErrorf.
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 Fail
deprecated
func Fail()
Fail unconditionally abandons the process.
Deprecated: Use Failf.
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.