Documentation
¶
Overview ¶
Module 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 github.com/stretchr/testify/assert package provides a comprehensive set of assertion functions that tie in to the Go testing system. The github.com/stretchr/testify/require package provides the same assertions but as fatal checks.
A golangci-lint compatible linter for testify is available called testifylint.
Directories
¶
Path | Synopsis |
---|---|
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
|
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. |
internal/unsafetests
This package exists just to isolate tests that reference the unsafe package.
|
This package exists just to isolate tests that reference the unsafe package. |
yaml
Package yaml is just an indirection to handle YAML deserialization.
|
Package yaml is just an indirection to handle YAML deserialization. |
internal
|
|
difflib
Package difflib is a partial port of Python difflib module.
|
Package difflib is a partial port of Python difflib module. |
spew
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
|
Package spew implements a deep pretty printer for Go data structures to aid in debugging. |
Package require implements the same assertions as the assert package but stops test execution when a test fails.
|
Package require implements the same assertions as the assert package but stops test execution when a test fails. |
Click to show internal directories.
Click to hide internal directories.