package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 27, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package errs allows for safe error handling in tests.
Check checks for an error, stopping the test and failing if one is encountered.
Defer checks if something producing an error while in defer.
Must returns a function that evaluates the given parameters and fails the tests immediately if err != nil.
Must2 is the same as Must but for returning two values.
TestMain is a wrapper to help with testing a TestMain function.
NewTestMain creates a new TestMain wrapping testing.M.
func (*TestMain) FailNow ¶
FailNow causes a nil panic.
func (*TestMain) Helper ¶
Helper is a noop.
func (*TestMain) Run ¶
Run runs the tests saving the return code for exiting later.
Testing is implemented by testing.T and testing.B
Source Files
¶
Click to show internal directories.
Click to hide internal directories.