// RequireFilterEqual asserts that two objects are equal.
// All ignored types found on any of the provided objects will not be compared.
RequireFilterEqual asserts that two objects are equal.
All ignored types found on any of the provided objects will not be compared.
// RequireFilterEqual asserts that two objects are equal . // All ignored types found on any of the provided objects will not be compared .
func RequireFilterEqual(t *testing.T, v1, v2 interface{}, ignoreTypes []interface{}) {
	t.Helper()
	diff := cmp.Diff(v1, v2, cmpopts.IgnoreTypes(ignoreTypes...),
		cmp.Exporter(func(reflect.Type) bool { return true }))
	if diff != "" {
		t.Errorf("Not equal:\n%s", diff)
		t.FailNow()
	}
}
func RequireFilterEqual ( t * testing . T , v1 , v2 interface { } , ignoreTypes [ ] interface { } ) { t . Helper ( ) diff := cmp . Diff ( v1 , v2 , cmpopts . IgnoreTypes ( ignoreTypes ... ) , cmp . Exporter ( func ( reflect . Type ) bool { return true } ) ) if diff != " " { t . Errorf ( " \n " , diff ) t . FailNow ( ) } }
RequireFilterEqual asserts that two objects are equal.
RequireFilterEqual asserts that two objects are equal .