# Functions
Count returns the total number of assertions.
Elapsed returns the time since `Started()`.
Empty returns an empty assertions handler; useful when you want to apply assertions w/o hooking into the testing framework.
GetContextID gets the context id for a test run.
GetTestName gets the test name for a test run context.
Increment increments the global assertion count.
New returns a new instance of `Assertions`.
NewFailure creates a new failure.
OptOutput sets the output for assertions.
OutputFormatFromEnv gets the output format from the env or the default.
Rate returns the assertions per second.
ReportRate writes the rate summary to stdout.
Started marks a started time.
WithContextID sets the test context id.
WithTestName sets the test name.
# Constants
BLUE is the ansi escape code fragment for blue.
GRAY is the ansi escape code fragment for gray.
GREEN is the ansi escape code fragment for green.
OutputFormats.
OutputFormats.
OutputFormats.
OutputFormats.
RED is the ansi escape code fragment for red.
WHITE is the ansi escape code fragment for white.
YELLOW is the ansi escape code fragment for yellow.
# Structs
Assertions is the main entry point for using the assertions library.
Failure is an assertion failure.
# Type aliases
Option mutates assertions.
OutputFormat is an assertion error output format.
Predicate is a func that returns a bool.
PredicateOfFloat is a func that takes a float64 and returns a bool.
PredicateOfInt is a func that takes an int and returns a bool.
PredicateOfString is a func that takes a string and returns a bool.
PredicateOfTime is a func that takes a time.Time and returns a bool.