Skip to content

Commit 4a2d751

Browse files
Costa ShulyupinCosta Shulyupin
authored andcommitted
notes and test
1 parent c2c75b0 commit 4a2d751

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

srcxray.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,8 @@ def esc(s):
910910

911911
@open_file(0, mode='r')
912912
def read_dot(dot):
913-
# read_dot pydot.graph_from_dot_data parse_dot_data from_pydot
913+
# faster custom version of eponymous function from external library
914+
# pydot.graph_from_dot_data parse_dot_data from_pydot
914915
dg = nx.DiGraph()
915916
for a in dot:
916917
a = a.strip()
@@ -1226,6 +1227,9 @@ def doxygen_xml(a):
12261227

12271228

12281229
def doxygen_length(a):
1230+
'''
1231+
calculates length of functions using doxygen xml
1232+
'''
12291233
g = my_graph()
12301234
for x in list(glob.glob(os.path.join(a, "*.xml")) + [a]):
12311235
if os.path.isfile(x):
@@ -1294,6 +1298,8 @@ def test_1(self):
12941298
self.assertRegex(popen(
12951299
'srcxray.py "nx.DiGraph([{1,2},{2,3},{2,4}])"')[-1],
12961300
"\t\t4.*")
1301+
os.system('srcxray.py doxygen init')
1302+
self.assertTrue(read_dot("doxygen.dot").number_of_edges() > 400)
12971303

12981304

12991305
def main():

0 commit comments

Comments
 (0)