Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - kernel/none - mp_indep.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16827-3d78da8) Lines: 504 558 90.3 %
Date: 2014-09-29 Functions: 49 52 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 400 562 71.2 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 25518346
addmulii_gen 17688458
addmulii_inplace 682767475
addmulii_lg3 184952703
affrr 793191894
dblexpo 0
dblmantissa 0
dbltor 3875362
div0r 68866
divir 2747257
divrs 3811916
divru 158559145
divsi 0
divsr 9490
divur 1532370
int2n 67632742
int2u 1292140
invmod2BIL 13819611
invr 7081236
invr_basecase 7081236
mantissa_real 12869364
modii 716469847
modiiz 460080
mul0r 1859715
mulii 4060256421
mulir 109725942
mulrr 1951101506
mulrrz_3 1156175629
mulrrz_3end 1163906543
mulrrz_end 843048040
mulrrz_i 1926762233
mulrrz_int 54221010
mulsi 98700952
mulsr 33431245
mulss 6921276
mului 550569126
mulur 142849121
mulur_2 138074646
muluu 905936141
rtodbl 13701117
shifti 451102503
sqri 1003211555
sqrr 80538903
sqrs 4152
sqru 180123087
sqrz_i 79737341
truedvmdii 60141192
truedvmdis 59876407
truedvmdsi 5495574
trunc2nr 4586582
usqrt 6629577
vals 214057975

Generated by: LCOV version 1.9