LogoClawIndex
CasesSkillsAbout
LogoClawIndex

golang-stretchr-testify - Go testing with stretchr/testify

Provides guidance for writing and reviewing Go tests using stretchr/testify, including assertions, mocks, and suites.

Tags

Updated: 2026-09-17

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Choose between assert and require
  • Define mock expectations
  • Verify mock expectations
  • Organize test suites
  • Use advanced assertion helpers

Inputs

  • Go test code
  • Test failure details
  • Testify mock definitions

Outputs

  • Refactored Go test code
  • Testify usage recommendations

Requirements

  • Go environment
  • stretchr/testify package
  • testifylint tool

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
golang
go
testify
assertions
mocks
testing
Choose between assert and require
Define mock expectations
Verify mock expectations
Organize test suites
Go test code
Test failure details
Testify mock definitions
Refactored Go test code
Testify usage recommendations