MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / DeepEqual

Function DeepEqual

internal/testing/cmp/cmp.go:51–53  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

49// comparison Options. See [github.com/google/go-cmp/cmp.Option] constructors
50// and [github.com/google/go-cmp/cmp/cmpopts].
51func 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.

Callers 3

TestAddNSSWrapperFunction · 0.92
TestNewHBAsFunction · 0.92
TestMakePGBackrestLogDirFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestAddNSSWrapperFunction · 0.74
TestNewHBAsFunction · 0.74
TestMakePGBackrestLogDirFunction · 0.74