Home › Testing Testing Test-first command structure: runF injection, in-memory IO, test doubles. Decisions byob-testing.1 — Inject test doubles through the Factory; never monkey-patch globals byob-testing.2 — `go-cmp` for non-trivial test comparisons byob-testing.3 — Assert on behavior, not implementation byob-testing.4 — Tests land with the code, not after