Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

testify

v1.12.1
github.com/stretchr/testify

Documentation

pkg.go.dev ↗
Top ↑

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.

The github.com/stretchr/testify/mock package provides a system by which it is possible to mock your objects and verify calls are happening as expected.

The github.com/stretchr/testify/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.

A golangci-lint compatible linter for testify is available called testifylint.

Dependency graph