| # This file exist despite having .coveragerc in infra because on Windows bots, |
| # we only execute tests in certain modules of infra (including this one) and the |
| # latest version of pragma throws an exception when given a non-existant config |
| # file. |
| |
| [run] |
| include = ./infra/libs/service_utils/* |
| |
| [report] |
| exclude_lines = |
| # Have to re-enable the standard pragma |
| pragma: no cover |
| |
| # Don't complain about missing debug-only code: |
| def __repr__ |
| if self\.debug |
| |
| # Don't complain if tests don't hit defensive assertion code: |
| raise AssertionError |
| raise NotImplementedError |
| |
| # Don't complain if non-runnable code isn't run: |
| if 0: |
| if __name__ == ['"]__main__['"]: |
| |
| [expect_tests] |
| expected_coverage_min = 100 |