mirror of https://gitlab.com/bashrc2/epicyon
Image format
parent
b927863f7e
commit
82a7cb2cb2
6
tests.py
6
tests.py
|
@ -2844,15 +2844,15 @@ def testFunctions():
|
||||||
for name, properties in functionProperties.items():
|
for name, properties in functionProperties.items():
|
||||||
if not properties['calls']:
|
if not properties['calls']:
|
||||||
continue
|
continue
|
||||||
for calledFunc in properties['calls']:
|
# for calledFunc in properties['calls']:
|
||||||
callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
|
# callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
|
||||||
|
|
||||||
callGraphStr += '\n}\n'
|
callGraphStr += '\n}\n'
|
||||||
with open('epicyon.dot', 'w+') as fp:
|
with open('epicyon.dot', 'w+') as fp:
|
||||||
fp.write(callGraphStr)
|
fp.write(callGraphStr)
|
||||||
print('Call graph saved to epicyon.dot')
|
print('Call graph saved to epicyon.dot')
|
||||||
print('Convert to image with: ' +
|
print('Convert to image with: ' +
|
||||||
'dot -T epicyon.dot -o epicyon_diagram.jpg')
|
'dot -Tjpg epicyon.dot -o epicyon_diagram.jpg')
|
||||||
|
|
||||||
|
|
||||||
def runAllTests():
|
def runAllTests():
|
||||||
|
|
Loading…
Reference in New Issue