ErrLookup › stretchr/testify
stretchr/testify
A toolkit with common assertions and mocks that plays nicely with the standard library · Go · 40 source files
Analyzed at 001eb7946b on 2026-08-04. 22 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| cannot take func type as argument | validation | error | assertion, reflection, func-type, equal |
| Parameters must be numerical | validation | error | assertion, numeric, in-epsilon, type-coercion |
| expected value must not be NaN | validation | error | assertion, numeric, nan, in-epsilon |
| expected value must have a value other than zero to calculat | validation | error | assertion, numeric, division-by-zero, in-epsilon |
| actual value must not be NaN | validation | error | assertion, numeric, nan, in-epsilon |
| YAML functions are not available (see https://pkg.go.dev/git | validation | info | yaml, build-tags, configuration, optional-dependency |
| test failed and t is missing `FailNow()` | panic | error | testing-interface, panic, failnow, require, backwards-compat |
| Reset() is deprecated | panic | error | deprecated, collectt, panic, api-removal |
| Copy() is deprecated | panic | error | deprecated, collectt, panic, api-removal |
| cannot use Func in expectations. Use mock.AnythingOfType("%T | panic | error | mock, panic, unset, func-argument |
| not before calls must be created with Mock.On() | panic | error | mock, panic, notbefore, ordering, call-construction |
| assert: arguments: %s is not a func | panic | error | mock, panic, matchedby, func-argument |
| assert: arguments: %s does not take exactly one argument | panic | error | mock, panic, matchedby, arity |
| assert: arguments: %s does not return a bool | panic | error | mock, panic, matchedby, return-type, bool |
| assert: arguments: Cannot call Get(%d) because there are %d | panic | error | mock, panic, arguments, index-out-of-range |
| assert: arguments: String(%d) failed because object wasn't c | panic | error | mock, panic, arguments, type-assertion, string |
| assert: arguments: Wrong number of arguments passed to Strin | panic | error | mock, panic, arguments, arity, string |
| assert: arguments: Int(%d) failed because object wasn't corr | panic | error | mock, panic, arguments, type-assertion, int |
| assert: arguments: Error(%d) failed because object wasn't co | panic | error | mock, panic, arguments, type-assertion, error |
| assert: arguments: Bool(%d) failed because object wasn't cor | panic | error | testify, mock, type-assertion, panic, go |
| 'Require' must not be called before 'Run' or 'SetT' | panic | error | testify, suite, lifecycle, panic, go |
| 'Assert' must not be called before 'Run' or 'SetT' | panic | error | testify, suite, lifecycle, panic, go |