modulepackage
0.0.0-20200723003110-82e2b9b3b262
Repository: https://github.com/smallstep/assert.git
Documentation: pkg.go.dev
# README
assert
A simple assertion framework for Go.
Read online reference at http://godoc.org/github.com/smallstep/assert
# Functions
Equals checks that expected and actual are equal.
Error checks if err is not nil.
False checks that a condition is false.
Fatal checks that a condition is true or marks the test as failed and stop it's execution.
FatalError checks that a error is nil or marks the test as failed and stop it's execution.
HasPrefix checks that the string contains the given prefix.
HasSuffix checks that the string ends with the given suffix.
Len checks that the application of len() to value match the expected value.
Nil checks that the value is nil.
NoError checks if err nil.
NotEquals checks that expected and actual are not equal.
NotNil checks that the value is not nil.
Panic checks that the passed function panics.
True checks that a condition is true.
Type checks that the value matches the type of expected.
# Interfaces
Tester is an interface that testing.T implements, It has the methods used in the implementation of this package.