Documentation
¶
Overview ¶
Package asserter defines the default interface between the testing package and the evaluation of predicates during testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*opts)
Option is passed to New() to configure assertion handling
func AbortOnError ¶
func AbortOnError() Option
AbortOnError tells the asserter wether or not to fail
type T ¶
type T interface {
// That verifies that a value matches a predicate, and outputs detail
// information in case of a failure or error. Additional details can be
// passed in as a format string and arguments, or just a list of arguments.
That(v interface{}, p predicate.T, details ...interface{})
}
T is a wrapper around a testing interface that can verify predicates and display failure reasons on error
Click to show internal directories.
Click to hide internal directories.