Hi, it is nice, but once you start to compare complex data structure you don't only want to know that the 2 structs differ, but where is exactly the difference.
Moreover it works only for comparable items, not slices for example. So in this case you need to rely on reflect.DeepEqual with the same problem: where is the difference?
Last but not least, you sometimes want to check a value is different from another, or greater than, or included between 2 values… This value can be nested inside a complex structure.
IMHO it is too bad to limit your testing approach and duplicate code (even small) from repos to repos just to avoid a testing dependency providing a huge number of features heavily tested.
Disclaimer: go-testdeep author here.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, it is nice, but once you start to compare complex data structure you don't only want to know that the 2 structs differ, but where is exactly the difference.
Moreover it works only for comparable items, not slices for example. So in this case you need to rely on
reflect.DeepEqual
with the same problem: where is the difference?Last but not least, you sometimes want to check a value is different from another, or greater than, or included between 2 values… This value can be nested inside a complex structure.
IMHO it is too bad to limit your testing approach and duplicate code (even small) from repos to repos just to avoid a testing dependency providing a huge number of features heavily tested.
Disclaimer: go-testdeep author here.