-
https://github.com/stretchr/testify/blob/b89eecf5ca5db6d3ba60b237ffe3df7bafb7662f/assert/assertions.go#L390-L410
`isNil` will always return false, so `NotNil` will always return true for int, strin…
-
When Arg.stringify comes across a Date object it falls on its face: http://jsfiddle.net/JVECJ/
https://github.com/stretchr/arg.js/blob/master/src/arg.js#L127 needs to additionally have an instanceof …
-
The main binary links a lot of packages that are supposed to be test-only (including the standard lib `testing`!). #74119 tracks fixing the linters. This issue tracks removing and fixing these deps.
…
-
In a nutshell: this test passes, despite the second call panicking.
```go
package main
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"go.uber.org/cadence/activity"
"g…
-
Typically, the target passed to `errors.As` has a zero value. But if the `errors.As` call is wrapped by `assert.ErrorAs`, this can lead to a confusing error message if the assertion fails:
```
---…
-
Add `NotFileExists` and `NotDirExists` assertions, reverse of #536.
-
```
2024-01-17T07:10:44.823Z WARN protocol/messenger_maps.go:65 contacts map: loading own identity {"contactID": "0x04716c2fe697450134fb3e9af81226011b8d8c1bfff96114cb33c0c81f84930f115689099b58b855e4a…
-
I am new to Golang and trying testify for the first time. I have following code to test.
```
var AddToPagerFuncs []func(int) error
func AddToManager(p pager.Pager) error {
for _, f := range A…
-
## Describe the bug
> Please give a brief description of the bug;
When the assertion fails, the test is not considered to have failed, an error message is generated, and a test report is not gener…
-
Add default parameters to `Session`.
- `At` method (that creates the `Request`) should add these default parameters to the request
- Individual requests can always override/change them if necessary.
…