Skip to content

Glossary: Refactoring and Clean Code

Golden master

Also written: golden file, golden test, golden.txt

One approved copy of a program's output saved in a file. A test checks that each run prints exactly that text, as with `golden_receipt.txt`.

Where the book teaches it

Related terms

Characterization testcapsys