MCPcopy Index your code
hub / github.com/expr-lang/expr / EqualExportedValues

Method EqualExportedValues

internal/testify/require/require_forward.go:167–172  ·  view source on GitHub ↗

EqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that have private fields that could potentially differ. type S struct { Exported int notExported int } a.EqualExportedValues(S{1, 2}, S{

(expected interface{}, actual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

165// a.EqualExportedValues(S{1, 2}, S{1, 3}) => true
166// a.EqualExportedValues(S{1, 2}, S{2, 3}) => false
167func (a *Assertions) EqualExportedValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
168 if h, ok := a.t.(tHelper); ok {
169 h.Helper()
170 }
171 EqualExportedValues(a.t, expected, actual, msgAndArgs...)
172}
173
174// EqualExportedValuesf asserts that the types of two objects are equal and their public
175// fields are also equal. This is useful for comparing structs that have private fields

Callers

nothing calls this directly

Calls 2

EqualExportedValuesFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected