diff options
| author | nyamatongwe <devnull@localhost> | 2010-01-31 07:20:04 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-01-31 07:20:04 +0000 | 
| commit | 4aba35c99ceb511235086b9bc640daf6684e57bc (patch) | |
| tree | a184d5c9c3773c6d30ebb3b9d4b0ea725e4aefa7 | |
| parent | add5f0668596d2b7787fb941d846ca6edce32c91 (diff) | |
| download | scintilla-mirror-4aba35c99ceb511235086b9bc640daf6684e57bc.tar.gz | |
Better coverage display.
| -rw-r--r-- | test/XiteWin.py | 9 | ||||
| -rw-r--r-- | test/simpleTests.py | 5 | 
2 files changed, 9 insertions, 5 deletions
diff --git a/test/XiteWin.py b/test/XiteWin.py index 71234cbd6..882d2f657 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -609,7 +609,7 @@ class XiteWin():  		print()  		print("\n".join(sorted(self.ed.used))) -	def CmdUncalled(self): +	def Uncalled(self):  		print()  		unused = sorted(self.ed.all.difference(self.ed.used))  		uu = {} @@ -617,9 +617,8 @@ class XiteWin():  			v = self.ed.getvalue(u)  			if v > 2000:  				uu[v] = u -		for x in sorted(uu.keys())[150:]: -			print(x, uu[x]) -		print() +		#~ for x in sorted(uu.keys())[150:]: +		return uu  	def CmdExit(self):  		self.Exit() @@ -648,3 +647,5 @@ def main(test):  	global xiteFrame  	xiteFrame = XiteWin(test)  	xiteFrame.AppLoop() +	#~ xiteFrame.CmdExercised() +	return xiteFrame.Uncalled() diff --git a/test/simpleTests.py b/test/simpleTests.py index 2793361b2..0440b99ae 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -1150,4 +1150,7 @@ class TestAutoComplete(unittest.TestCase):  	#~ nf = x + "\\" + n  	#~ print os.access(nf, os.R_OK), nf  if __name__ == '__main__': -	XiteWin.main("simpleTests") +	uu = XiteWin.main("simpleTests") +	#~ for x in sorted(uu.keys()): +		#~ print(x, uu[x]) +	#~ print()  | 
