Files
Martin Locklear 3550d2019b Better Test Output For Git Diff Parsing (#4018)
* Better Test Output For Git Diff Parsing

This test file previously compared parsed diffs using a method `Equal` on the Diff
struct. This would fail (and stop) at the first mismatch, and left reporting the
failure to the caller.  The existing test output made it hard to understand _what_
the difference was when the difference was in the diff content itself because the
_content_ of the contentWriter field wasn't actually processed and printed.

This change adds an `assertDiffEqualToExpected` function that leverages much of the
existing test structure but centralizes the assertion _and_ reporting of the differences
into a single reusable method.
2025-04-09 09:41:31 -04:00
..