[Twisted-Python] Test coverage of Twisted

Jp Calderone exarkun at intarweb.us
Mon Sep 29 13:12:17 MDT 2003


  Tv pointed out a code coverage tool this morning.  I thought I'd share
some results it generated.

  For twisted.internet:

Name                Stmts   Exec  Cover
---------------------------------------
gladereactor          118      0     0%
gtk2reactor           139      0     0%
gtkreactor            125      0     0%
javareactor           268      0     0%
kqreactor              90      0     0%
pollreactor           107      0     0%
pyuisupport            16      0     0%
qtreactor             131      0     0%
task                    8      0     0%
tksupport              29      0     0%
win32eventreactor     266      0     0%
wxsupport              22      0     0%
stdio                  58     18    31%
utils                 144     55    38%
app                   559    275    49%
main                   86     50    58%
threads                27     16    59%
interfaces            328    200    60%
process               415    271    65%
unix                  184    134    72%
default               336    244    72%
reactor                 9      7    77%
base                  384    304    79%
fdesc                  26     22    84%
tcp                   451    387    85%
udp                   208    178    85%
abstract              131    115    87%
protocol              275    242    88%
ssl                    89     79    88%
defer                 212    192    90%
error                 154    144    93%
---------------------------------------
TOTAL                5396   2934    54%


  For twisted.protocols:

Name          Stmts   Exec  Cover
---------------------------------
socks           116      0     0%
finger           30      0     0%
portforward      41      0     0%
shoutcast        76      0     0%
oscar           836    167    19%
dict            285     97    34%
telnet          155     66    42%
msn             994    454    45%
nntp            638    302    47%
irc            1080    528    48%
toc            1043    547    52%
htb             115     74    64%
pop3            446    294    65%
smtp            918    626    68%
policies        275    190    69%
xmlstream        91     66    72%
raw              15     11    73%
ftp             712    552    77%
imap4          2742   2132    77%
postfix          76     59    77%
sux             402    312    77%
sip             674    541    80%
wire             50     41    82%
basic           236    197    83%
http            649    554    85%
dns             688    602    87%
ethernet         31     29    93%
pcp             121    117    96%
loopback         94     92    97%
ip               34     34   100%
rawudp           25     25   100%
---------------------------------
TOTAL         13689   8710    63%


  For twisted.python:

Name            Stmts   Exec  Cover
-----------------------------------
dispatch           15      0     0%
domhelpers          4      0     0%
dxprofile          29      0     0%
mutablestring       3      0     0%
mvc                10      0     0%
plugin            174      0     0%
register           28      0     0%
shortcut           29      0     0%
syslog             27      0     0%
win32              15      0     0%
dir                26      2     7%
otp               152     34    22%
htmlizer           50     12    24%
compat             62     17    27%
runtime            36     15    41%
finalize           30     16    53%
text              137     73    53%
observable        249    151    60%
threadable        188    114    60%
reflect           371    224    60%
threadpool        120     78    65%
util              354    249    70%
urlpath            77     56    72%
roots             107     78    72%
rebuild           194    148    76%
zipstream         176    139    78%
log               239    192    80%
logfile           162    134    82%
filepath          161    135    83%
failure           191    167    87%
usage             289    254    87%
formmethod        217    198    91%
components        213    196    92%
hook               70     65    92%
context            43     42    97%
timeoutqueue       24     24   100%
-----------------------------------
TOTAL            4273   2814    65%


  More detailed information is available -- if anyone wants to take on
improving the test coverage, send me a note and I'll send you the relevant
files.  Also, the data file used to generate the output is attached to this
message (decompress before using), and the tool for manipulating it in
useful ways is at

    http://www.garethrees.org/2001/12/04/python-coverage/coverage.py

  so you can also generate the results independently.

  Jp

-- 
http://catandgirl.com/view.cgi?44
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030929/6fc235e4/attachment.sig>


More information about the Twisted-Python mailing list