Factor the warning code into a shared helper.  Remove some of the unnecessary repetition from the tests.
6 files changed