assertions icon indicating copy to clipboard operation
assertions copied to clipboard

Fluent assertion-style functions used by goconvey and gunit. Can also be used in any test or application.

Results 6 assertions issues
Sort by recently updated
recently updated
newest added

```go func TestContainsKey(t *testing.T) { Convey("Test IntersectMapsByKey", t, func() { map1 := map[int64]bool{ 1: true, } So(map1, ShouldContainKey, int64(1)) So(map1, ShouldContainKey, 1) }) } ``` the first assertion passed, while...

``` zhsj@debian:~/go/src/github.com/smartystreets/assertions/internal/go-render/render$ go test . -count=1 -run TestMapSortRendering --- FAIL: TestMapSortRendering (0.00s) render_test.go:29: On line #279, [] did not match expectations: Expected: map[interface{}]struct {}{1:{}, 2:{}, 3:{}, "foo":{}} Actual : map[interface{}]struct...

This should give a better warning: `So(1, should.BeEmpty)`

https://github.com/smartystreets/goconvey/issues/437

bug

This new package wraps the `Should` assertion functions, prepending a hard-coded string value in failure cases, which [gunit](https://github.com/smarty/gunit) (or any other consumer) can detect, thereby ending the current test case,...

``` github.com/signalfx/golib/v3/datapoint tested by github.com/signalfx/golib/v3/datapoint.test imports github.com/smartystreets/goconvey/convey imports github.com/smartystreets/assertions: github.com/smartystreets/[email protected]: parsing go.mod: module declares its path as: github.com/smarty/assertions but was required as: github.com/smartystreets/assertions ``` How to fix this error while...