In circuit tester (Pass or Fail Conflict)

I don't have a lot of arduino programming experience so if my suggestion sounds bogus feel free to ignore it.
If I were doing it I would have a boolean flag for each pin and set each flag when that pin passes. At the end of cycling through all the pins I would do a either an IF or a CASE to check if the eight pins all have FAIL flags and if so the FAIL for ONLY those pins and no others would yield a PASS for ALL the FAIL pins IF AND ONLY IF the FAIL PINS ARE THE ONES THAT ARE SHORTED ON THE BOARD.

Does that make sense ? (FAIL = PASS). (Sounds crazy huh ?)