Skip to content

stevenacoffman/testing-legacy

v0.1.0MIT

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

test-helper-contract

Use when writing or reviewing Go test helpers that return errors, or when tests repeat setup error checks. Helpers should call t.Fatalf instead of returning errors, call t.Helper() for correct line numbers, and register teardown with t.Cleanup() or a returned cleanup func.

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.