You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of ObjectsAreEqual inside require.Equal is effectively just a call to reflect.DeepEqual, which means we don't need require.True(reflect.DeepEqual(expected, actual)). So it's a good idea to replace all reflect.DeepEqual in tests to require.Equal.
The text was updated successfully, but these errors were encountered:
close#5104
Add the inefficient assert function usage check.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
closetikv#5104
Add the inefficient assert function usage check.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Enhancement Task
The implementation of
ObjectsAreEqual
insiderequire.Equal
is effectively just a call to reflect.DeepEqual, which means we don't needrequire.True(reflect.DeepEqual(expected, actual))
. So it's a good idea to replace allreflect.DeepEqual
in tests torequire.Equal
.The text was updated successfully, but these errors were encountered: