- [[テーブル駆動テスト]] - Golden file test - 期待するアウトプット ( json など) をファイルに保存し、そのファイルと同じ結果が出力されているかをテストする方法 - 関数の出力を `.golden` ファイルと比較する ## 参考 - [GoのAPI開発現場におけるユニットテストTips](https://devblog.thebase.in/entry/2018/12/04/110000) - [Testing with golden files in Go](https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3)