golang-stretchr-testify
A guide to using stretchr/testify in Go for assertions, mocks, and test suites.
What it does
Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify.
Quality judgment
Excellent clarity, structure, and actionable examples covering assert/require, suites, common mistakes, and linters, with a strong description and trigger conditions. The mock section is notably thin, deferring to a references/mock.md file that isn't included, which limits standalone completeness.