Skip to content

Commit

Permalink
Check strip of whitespaces in doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetown committed Apr 3, 2022
1 parent ad0a8fb commit 543c495
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gcovr/gcov_parser.py
Expand Up @@ -220,11 +220,7 @@ def parse_metadata(lines: List[str]) -> Dict[str, str]:
RuntimeError: Missing key 'Source' in metadata. GCOV data was >>
-: 0:Foo:bar
-: 0:Key:123<< End of GCOV data
>>> parse_metadata('''
... -: 0:Source:file
... -: 0:Foo:bar
... -: 0:Key:123
... '''.splitlines())
>>> parse_metadata('-: 0:Source: file \n -: 0:Foo: bar \n -: 0:Key: 123 '.splitlines())
{'Source': 'file', 'Foo': 'bar', 'Key': '123'}
>>> parse_metadata('''
... -: 0:Source:file
Expand Down

0 comments on commit 543c495

Please sign in to comment.