Sign inGet started
–

golang-stretchr-testify

by samber/cc-skills-golang · Coding & Development

A guide to using stretchr/testify in Go for assertions, mocks, and test suites.

Lift · GLM-5.3-flash—not yet benchmarked
89
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

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.

#golang#mocking#testify#testing#unit-tests

Quality judgment

completeness
7.0/10
clarity
9.0/10
trigger quality
8.5/10
examples
9.0/10
structure
9.0/10
overall
8.0/10

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.

allowed-tools

Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs Bash(gotests:*) AskUserQuestion Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*

Files (4)

evals/evals.json · 11.9 KBLICENSE · 1.0 KBreferences/mock.md · 3.1 KBSKILL.md · 7.2 KB