Package testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
testify contains the following packages:
The assert package provides a comprehensive set of assertion functions that tie in to the Go testing system.
The http package contains tools to make it easier to test http activity using the Go testing system.
The mock package provides a system by which it is possible to mock your objects and verify calls are happening as expected.
The suite package provides a basic structure for using structs as testing suites, and methods on those structs as tests. It includes setup/teardown functionality in the way of interfaces.
Internal call graph ▹
Internal call graph ▾
In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
|assert||Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.|
|http||Package http DEPRECATED USE net/http/httptest|
|mock||Package mock provides a system by which it is possible to mock your objects and verify calls are happening as expected.|
|require||Package require implements the same assertions as the `assert` package but stops test execution when a test fails.|
|suite||Package suite contains logic for creating testing suite structs and running the methods on those structs as tests.|