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

Function EqualExportedValuesf

internal/testify/require/require.go:226–234  ·  view source on GitHub ↗

EqualExportedValuesf 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 } assert.EqualExportedValuesf(t, S

(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

224// assert.EqualExportedValuesf(t, S{1, 2}, S{1, 3}, "error message %s", "formatted") => true
225// assert.EqualExportedValuesf(t, S{1, 2}, S{2, 3}, "error message %s", "formatted") => false
226func EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
227 if h, ok := t.(tHelper); ok {
228 h.Helper()
229 }
230 if assert.EqualExportedValuesf(t, expected, actual, msg, args...) {
231 return
232 }
233 t.FailNow()
234}
235
236// EqualValues asserts that two objects are equal or convertible to the same types
237// and equal.

Callers 1

EqualExportedValuesfMethod · 0.70

Calls 3

EqualExportedValuesfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…