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{})
| 181 | // a.EqualExportedValues(S{1, 2}, S{1, 3}) => true |
| 182 | // a.EqualExportedValues(S{1, 2}, S{2, 3}) => false |
| 183 | func (a *Assertions) EqualExportedValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { |
| 184 | if h, ok := a.t.(tHelper); ok { |
| 185 | h.Helper() |
| 186 | } |
| 187 | return EqualExportedValues(a.t, expected, actual, msgAndArgs...) |
| 188 | } |
| 189 | |
| 190 | // EqualExportedValuesf asserts that the types of two objects are equal and their public |
| 191 | // fields are also equal. This is useful for comparing structs that have private fields |
nothing calls this directly
no test coverage detected