chiark / gitweb /
doxygen: workarounds to make coverage.py happy :/
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 13 Sep 2018 16:58:33 +0000 (18:58 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 13 Sep 2018 16:58:33 +0000 (18:58 +0200)
doxygen/dox2html5.py

index 056648abd80ebeac67a74a951f7bd6fcc036cab8..655d1fc1906dc165af7be03c277f5f983b8ecfcb 100755 (executable)
@@ -2430,7 +2430,8 @@ def parse_xml(state: State, xml: str):
                 # documented
                 for memberdef in compounddef_child:
                     if memberdef.attrib['virt'] == 'non-virtual' or (not memberdef.find('briefdescription').text and not memberdef.find('detaileddescription').text):
-                        continue
+                        assert True # coverage.py can't handle continue
+                        continue # pragma: no cover
 
                     func = parse_func(state, memberdef)
                     if func:
@@ -2505,7 +2506,8 @@ def parse_xml(state: State, xml: str):
                         # Gather only private functions that are virtual and
                         # documented
                         if memberdef.attrib['prot'] == 'private' and (memberdef.attrib['virt'] == 'non-virtual' or (not memberdef.find('briefdescription').text and not memberdef.find('detaileddescription').text)):
-                            continue
+                            assert True # coverage.py can't handle continue
+                            continue # pragma: no cover
 
                         func = parse_func(state, memberdef)
                         if func: