DeepEqual compares two values using [github.com/google/go-cmp/cmp] and succeeds if the values are equal. The comparison can be customized using comparison Options. See [github.com/google/go-cmp/cmp.Option] constructors and [github.com/google/go-cmp/cmp/cmpopts].
(x, y T, opts ...gocmp.Option)
| 49 | // comparison Options. See [github.com/google/go-cmp/cmp.Option] constructors |
| 50 | // and [github.com/google/go-cmp/cmp/cmpopts]. |
| 51 | func DeepEqual[T any](x, y T, opts ...gocmp.Option) Comparison { |
| 52 | return gotest.DeepEqual(x, y, opts...) |
| 53 | } |
| 54 | |
| 55 | // Equal succeeds if x == y, the same as [gotest.tools/v3/assert.Equal]. |
| 56 | // The type constraint makes it easier to compare against numeric literals and typed constants. |
no outgoing calls