github.com/JosiahWitt/ensure (go): Package ensure is a balanced testing framework for Go 1.14+. It supports modern Go 1.13+ error comparisons (via errors.Is), and provides easy to read diffs (via deep.Equal).  Most of the implementation is in the ensuring package. ensure.New should be used to create an instance of the ensure framework, which allows shadowing the "ensure" package (like with the t variable in tests). This provides easy test refactoring, while still being able to access the underlying types via the ensuring package.  For example:
Keywords: go|golang|hacktoberfest|mock|mocking|test|testing|testing-framework|testing-library