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-bordeaux.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 18953-2660f45) Lines: 514 558 92.1 %
Date: 2016-05-29 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 430 562 76.5 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 30460533
addmulii_gen 19008967
addmulii_inplace 745335426
addmulii_lg3 211027826
affrr 1079309590
dblexpo 0
dblmantissa 0
dbltor 4986511
div0r 90272
divir 2509028
divrs 3466500
divru 313799788
divsi 21
divsr 7726
divur 1270103
int2n 70839702
int2u 3252497
invmod2BIL 23029330
invr 10818844
invr_basecase 10818844
mantissa_real 15618761
modii 1294057417
modiiz 518466
mul0r 1145391
mulii 6911470391
mulir 153202622
mulrr 2378155383
mulrrz_3 1359113021
mulrrz_3end 1374071443
mulrrz_end 1055321793
mulrrz_i 2348745943
mulrrz_int 60502829
mulsi 124372178
mulsr 36923657
mulss 22523738
mului 913440811
mulur 269491180
mulur_2 260618563
muluu 1333236755
rtodbl 54687880
shifti 675857461
sqri 1070942065
sqrr 81084863
sqrs 4187
sqru 423115230
sqrz_i 79811294
truedvmdii 49047868
truedvmdis 48434302
truedvmdsi 6083657
trunc2nr 5988345
usqrt 7197485
vals 1301241392

Generated by: LCOV version 1.9