From: Vladimír Vondruš Date: Thu, 13 Sep 2018 16:58:33 +0000 (+0200) Subject: doxygen: workarounds to make coverage.py happy :/ X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=3f1f7ef007e5b0659594f3addcc45309f7ec90dc;p=blog.git doxygen: workarounds to make coverage.py happy :/ --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 056648ab..655d1fc1 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -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: