malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

matches_the_pg_string isn't unit tested #45

Open malsyned opened 6 years ago

malsyned commented 6 years ago

If matches_the_pg_string_test() was rewritten to simply "return true", the test suite would still pass and many of the tests in the self-test suite could be in error. While it is easy to catch errors in this test while adding new self-tests (greens would show up when the developer is expecting reds), refactoring in pfstest-matchers.c could result in this function breaking silently until the problem is discovered while adding new self-tests, if ever.