OLD | NEW |
1 # This file exist despite having .coveragerc in infra_libs because on Windows | 1 # This file exist despite having .coveragerc in infra_libs because on Windows |
2 # bots, we only execute tests in certain modules of infra_libs (including this | 2 # bots, we only execute tests in certain modules of infra_libs (including this |
3 # one) and the latest version of pragma throws an exception when given a | 3 # one) and the latest version of coverage throws an exception when given a |
4 # non-existant config file. | 4 # non-existant config file. |
5 | 5 |
6 [run] | 6 [run] |
7 include = ./infra_libs/event_mon/* | 7 include = ./packages/infra_libs/infra_libs/* |
8 | 8 |
9 [report] | 9 [report] |
10 exclude_lines = | 10 exclude_lines = |
11 # Have to re-enable the standard pragma | 11 # Have to re-enable the standard pragma |
12 pragma: no cover | 12 pragma: no cover |
13 | 13 |
14 # Don't complain about missing debug-only code: | 14 # Don't complain about missing debug-only code: |
15 def __repr__ | 15 def __repr__ |
16 if self\.debug | 16 if self\.debug |
17 | 17 |
18 # Don't complain if tests don't hit defensive assertion code: | 18 # Don't complain if tests don't hit defensive assertion code: |
19 raise AssertionError | 19 raise AssertionError |
20 raise NotImplementedError | 20 raise NotImplementedError |
21 | 21 |
22 # Don't complain if non-runnable code isn't run: | 22 # Don't complain if non-runnable code isn't run: |
23 if 0: | 23 if 0: |
24 if __name__ == ['"]__main__['"]: | 24 if __name__ == ['"]__main__['"]: |
25 | 25 |
26 [expect_tests] | 26 [expect_tests] |
27 expected_coverage_min = 100 | 27 expected_coverage_min = 100 |
OLD | NEW |