google / syzygy

Syzygy Transformation Toolchain
Apache License 2.0
355 stars 59 forks source link

Refactor an Application unittest fixture. #16

Open chhamilton opened 9 years ago

chhamilton commented 9 years ago

A common pattern in testing applications is to build a harness that captures their various outputs and makes them available for parsing by the fixture. This pattern occurs 25 times in the code base via cut and paste. It would be great to extract a reusable fixture:

https://codereview.chromium.org/1269553002/diff/1/syzygy/runlaa/runlaa_app_unittest.cc#newcode51