aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-01-31 07:20:04 +0000
committernyamatongwe <unknown>2010-01-31 07:20:04 +0000
commit67b92d27ebb6b45c4d6e257c98105b5fa848510b (patch)
treea184d5c9c3773c6d30ebb3b9d4b0ea725e4aefa7
parent7a7f1f6c9c25925bcba49f862f29daee875456c4 (diff)
downloadscintilla-mirror-67b92d27ebb6b45c4d6e257c98105b5fa848510b.tar.gz
Better coverage display.
-rw-r--r--test/XiteWin.py9
-rw-r--r--test/simpleTests.py5
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()