Remove unit tests from dot diagram

merge-requests/8/head
Bob Mottram 2020-12-23 14:19:06 +00:00
parent 76a634b9dd
commit 549faf8b85
1 changed files with 4 additions and 0 deletions

View File

@ -2867,6 +2867,8 @@ def testFunctions():
callGraphStr += ' node [style=filled];\n' callGraphStr += ' node [style=filled];\n'
moduleFunctionsStr = '' moduleFunctionsStr = ''
for name in modProperties['functions']: for name in modProperties['functions']:
if name.startswith('test'):
continue
if name not in excludeFuncs: if name not in excludeFuncs:
moduleFunctionsStr += '"' + name + '" ' moduleFunctionsStr += '"' + name + '" '
if moduleFunctionsStr: if moduleFunctionsStr:
@ -2878,6 +2880,8 @@ def testFunctions():
if not properties['calls']: if not properties['calls']:
continue continue
for calledFunc in properties['calls']: for calledFunc in properties['calls']:
if calledFunc.startswith('test'):
continue
if calledFunc not in excludeFuncs: if calledFunc not in excludeFuncs:
callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'