Package testdeep allows extremely flexible deep comparison, built for testing.
It is a go rewrite and adaptation of wonderful Test::Deep perl module.
In golang, comparing data structure is usually done using reflect.DeepEqual or using a package that uses this function behind the scene.
This function works very well, but it is not flexible. Both compared structures must match exactly.
The purpose of testdeep package is to do its best to introduce this missing flexibility using operators when the expected value (or one of its component) cannot be matched exactly.
go-testdeep alternatives and related packages
Based on the "Testing Frameworks" category
Do you think we are missing an alternative of go-testdeep or a related project?
go-testdeep RecommendationsThere are no recommendations yet. Be the first to promote go-testdeep!
Have you used go-testdeep? Share your experience. Write a short recommendation and go-testdeep, you and your project will be promoted on Awesome Go.
Recently added go-testdeep resources
Be the first to add one!