Skip to content

stevenacoffman/testing-legacy

v0.1.0MIT

Go testing practice and legacy code: table tests, helpers, fuzzing, and safe change.

go-test-state-driven-table

Use when writing a Go test for a function with stateful external dependencies and multiple input scenarios. Combine a named map-based test table with a handwritten fake collaborator so each failure names its scenario and asserts on observable state, not call sequences.

Read SKILL.md at the source

Pinned to revision e4081cbb4d29, so it is the text this page describes rather than whatever the author pushed since.

Pre-approved tools experimental

Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.

  • Bash
  • Read
  • Edit

Files

Every link opens the file at its source, pinned to the revision this page describes.