[Nipy-devel] coverage testing

Tim Leslie tim.leslie at gmail.com
Tue Jul 25 07:06:53 CDT 2006


Hi All,

I just ran coverage.py[1] over with the complete test suite and got
back the results below. A 51% statement coverage rate isn't bad, but
it could certainly be better. Hopefully these results will point out
areas where we can improve our unit tests. Sorry if the formatting
comes out sucky, I'm sure you'll all be able to work it out :)

Cheers,

Tim

Name                                           Stmts   Exec  Cover   Missing
----------------------------------------------------------------------------
lib/neuroimaging/__init__                         42     35    83%
99, 101, 120-121, 136-138
lib/neuroimaging/config/configobj                761      0     0%   33-3085
lib/neuroimaging/config/options                   69      0     0%   35-189
lib/neuroimaging/config/validate                 245      0     0%   127-1444
lib/neuroimaging/data/__init__                   106     76    71%
26-32, 36-38, 54-55, 61-62, 67-72, 74, 76, 78-79, 96, 102-103, 117,
140-141
lib/neuroimaging/data/cache                       10      9    90%   26
lib/neuroimaging/data/urlhandler                 154      0     0%   1-250
lib/neuroimaging/defines                          26     17    65%
16-18, 31-33, 44, 50-51
lib/neuroimaging/extra/__init__                    0      0   100%
lib/neuroimaging/fmri/__init__                   112     83    74%
19, 23-29, 74-77, 89-100, 175-186
lib/neuroimaging/fmri/filters                    114     69    60%
21-32, 47-54, 61-68, 92-94, 112, 115, 141-144, 147-148, 173-174, 177,
198-199, 202-203, 206
lib/neuroimaging/fmri/functions                  118     24    20%
35-37, 49, 52-53, 58-80, 83-107, 110-134, 137-159
lib/neuroimaging/fmri/hrf                         69     60    86%
55-58, 131-134, 145
lib/neuroimaging/fmri/iterators                   15     15   100%
lib/neuroimaging/fmri/pca                        155    146    94%
60-63, 66, 142, 176, 222, 226, 247
lib/neuroimaging/fmri/protocol                   309    204    66%
32-33, 37, 40, 81-92, 128-131, 136, 139-145, 163-164, 179-196,
234-238, 242-258, 262, 274-279, 286, 301, 309, 311, 321-324, 335, 351,
379-389, 392-407, 416-421, 437-444
lib/neuroimaging/fmri/regression                 145    108    74%
35, 46, 64-65, 68, 71-72, 87-93, 97-107, 110-120, 123, 162-163,
166-168
lib/neuroimaging/fmri/session                      0      0   100%
lib/neuroimaging/fmri/utils                       54     34    62%
24-26, 29, 46, 50, 65-66, 80-81, 84-91, 95-96, 99
lib/neuroimaging/image/__init__                  124    109    87%
49, 55, 78, 89, 124, 130, 151-152, 162-164, 200-205, 236
lib/neuroimaging/image/fwhm                      244     28    11%
27-36, 39-52, 55, 58, 61-72, 78-93, 96, 107-125, 128-135, 139-167,
170-174, 177-185, 189-276, 279-282, 291-293, 297-349
lib/neuroimaging/image/intent                    229      0     0%   1-396
lib/neuroimaging/image/interpolation              51     43    84%
22, 29, 37, 57, 83-86
lib/neuroimaging/image/kernel_smooth              81     68    83%
50, 64-65, 73-74, 78, 82, 87, 92, 98, 101, 108, 118
lib/neuroimaging/image/onesample                 105     76    72%
36, 40-52, 59-69, 87-91, 121-126, 129, 136, 166, 173
lib/neuroimaging/image/regression                134     74    55%
24, 29, 46, 49-50, 53, 66-71, 74, 78-109, 112, 115-121, 131-136,
175-185, 188, 191-192
lib/neuroimaging/image/roi                       116      0     0%   5-214
lib/neuroimaging/image/utils                     101      8     7%
20-81, 85-153
lib/neuroimaging/pyanatomist/simpleview           65      0     0%   1-149
lib/neuroimaging/refactoring/__init__              0      0   100%
lib/neuroimaging/refactoring/analyze             187    154    82%
49, 60-63, 70-73, 173, 199, 204, 257, 306, 342, 352, 369, 376-378,
383-385, 399-414, 421
lib/neuroimaging/refactoring/baseimage           122     62    50%
55, 97-98, 102, 115, 119-121, 127-129, 151-200, 212-214, 219-221
lib/neuroimaging/reference/__init__                0      0   100%
lib/neuroimaging/reference/axis                   31     31   100%
lib/neuroimaging/reference/coordinate_system      74     47    63%
26-29, 33, 37-38, 42-43, 51-52, 61, 65, 83, 94-100, 104-111
lib/neuroimaging/reference/grid                  179    133    74%
39, 64, 68, 96, 113-115, 133-158, 226-230, 289-297, 301-303
lib/neuroimaging/reference/iterators              98     93    94%
130, 193, 199, 212-213
lib/neuroimaging/reference/mapping               241    138    57%
42-45, 49-54, 59-77, 92-95, 125-128, 132, 144, 155, 172, 180-182, 194,
205-236, 245-250, 319-320, 329-331, 337, 362, 387-404, 415, 426-430,
437-439, 444-446
lib/neuroimaging/reference/mni                     8      8   100%
lib/neuroimaging/reference/slices                 72     69    95%   168-170
lib/neuroimaging/statistics/__init__              11     11   100%
lib/neuroimaging/statistics/classification         3      0     0%   1-4
lib/neuroimaging/statistics/nlsmodel              50     42    84%
31, 39, 43-44, 58, 64-67
lib/neuroimaging/statistics/onesample            112     70    62%
31, 35-74, 80, 85, 91-92, 98, 106-112, 124, 147, 165
lib/neuroimaging/statistics/regression            37     29    78%
19-20, 27, 45, 66-67, 70, 73
lib/neuroimaging/statistics/rft                  310    238    76%
19, 53, 130, 136, 142, 146-147, 165, 212-215, 242, 245, 250, 261-263,
277-282, 302-317, 322, 325-328, 344, 349, 431, 434, 512, 520-526, 539,
546-551, 619, 672-681, 684-685, 689-693, 724-727
lib/neuroimaging/tests/__init__                    0      0   100%
lib/neuroimaging/tests/test_template              10      9    90%   16
lib/neuroimaging/tools/AnalyzeHeaderTool          34      0     0%   1-51
lib/neuroimaging/tools/TestTool                   41     25    60%
42-51, 61-62, 68-71, 75
lib/neuroimaging/tools/__init__                    0      0   100%
lib/neuroimaging/visualization/__init__            0      0   100%
lib/neuroimaging/visualization/arrayview         371    352    94%
49-50, 225-234, 390-391, 576, 593-596, 677-678
lib/neuroimaging/visualization/montage            76     69    90%
36, 50, 90-92, 100-101
lib/neuroimaging/visualization/multiplot          54     53    98%   64
lib/neuroimaging/visualization/qtutils            60     55    91%
7, 39, 108, 126-127
lib/neuroimaging/visualization/qview              11      0     0%   1-14
lib/neuroimaging/visualization/slices            137    102    74%
25, 44-48, 83-87, 150, 160, 176-183, 186, 223-230, 245-253
lib/neuroimaging/visualization/viewer            194    148    76%
81, 84-86, 100, 115, 130-137, 207, 211, 238, 249, 265-296
----------------------------------------------------------------------------
TOTAL                                           6277   3224    51%


[1] http://www.nedbatchelder.com/code/modules/coverage.html


More information about the Nipy-devel mailing list