extracttests.py: reduce line lengths
This commit is contained in:
parent
370018d313
commit
ce2be7cbe3
|
@ -55,7 +55,10 @@ class Extract:
|
||||||
# assert
|
# assert
|
||||||
res = re.match('\\s+ASSERT_EQUALS\\(\\"(.*)\\"', line)
|
res = re.match('\\s+ASSERT_EQUALS\\(\\"(.*)\\"', line)
|
||||||
if res != None and len(code) > 10:
|
if res != None and len(code) > 10:
|
||||||
node = { 'testclass':testclass, 'functionName':functionName, 'code':code, 'expected':res.group(1) }
|
node = { 'testclass':testclass,
|
||||||
|
'functionName':functionName,
|
||||||
|
'code':code,
|
||||||
|
'expected':res.group(1) }
|
||||||
self.nodes.append(node)
|
self.nodes.append(node)
|
||||||
code = ''
|
code = ''
|
||||||
|
|
||||||
|
@ -210,8 +213,14 @@ if filename != None:
|
||||||
|
|
||||||
# create files for each functionName
|
# create files for each functionName
|
||||||
for functionName in functionNames:
|
for functionName in functionNames:
|
||||||
writeHtmlFile(e.nodes, functionName, htmldir + 'errors-' + functionName + '.htm', True)
|
writeHtmlFile(e.nodes,
|
||||||
writeHtmlFile(e.nodes, functionName, htmldir + 'all-' + functionName + '.htm', False)
|
functionName,
|
||||||
|
htmldir + 'errors-' + functionName + '.htm',
|
||||||
|
True)
|
||||||
|
writeHtmlFile(e.nodes,
|
||||||
|
functionName,
|
||||||
|
htmldir + 'all-' + functionName + '.htm',
|
||||||
|
False)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for node in e.nodes:
|
for node in e.nodes:
|
||||||
|
|
Loading…
Reference in New Issue