diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-01-04 16:32:08 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-01-04 16:35:22 +0100 |
commit | b30ad39874519322b5b866d2a5fe6a43c6efd6a4 (patch) | |
tree | e935a171c229e4bf1dbe7a62d40a12a9a6a75f05 /.coveragerc | |
parent | a7af7049fa6ee0b5d4dadb026c31e3587d8f3b4c (diff) |
Create ODLParser to parse sys.argv
It helps covering lines about args parsing without calling main.
It also excludes 'if __name__ == .__main__.:' from coverage.
The related unit tests are added too.
Change-Id: I8e001a9d35081000977e0e546ae505f7cf2870e6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..fe258c6c --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[report] +exclude_lines = + if __name__ == .__main__.: |