From 34dd2c9a61528cb87ecf59d031bae23cd257210a Mon Sep 17 00:00:00 2001 From: Vignesh K Date: Wed, 27 Mar 2019 17:34:08 +0530 Subject: Initial commit for clamp-policy plugin Addressed review comments Issue-ID: DCAEGEN2-1129 Change-Id: Icdf95bdbf7c3ec2f201d5d57544ef6d206f3c5fa Signed-off-by: Vignesh K --- clamp-policy/.coveragerc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 clamp-policy/.coveragerc (limited to 'clamp-policy/.coveragerc') diff --git a/clamp-policy/.coveragerc b/clamp-policy/.coveragerc new file mode 100644 index 0000000..22cdf0c --- /dev/null +++ b/clamp-policy/.coveragerc @@ -0,0 +1,25 @@ +# .coveragerc to control coverage.py +[run] +branch = True +cover_pylib = False +# include = */clamppolicyplugin/*.py + +[report] +# Regexes for lines to exclude from consideration +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__.: + +ignore_errors = True -- cgit 1.2.3-korg