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 17400-bace02f) Lines: 512 558 91.8 %
Date: 2015-01-25 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 407 562 72.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 26438714
addmulii_gen 18731966
addmulii_inplace 721853007
addmulii_lg3 200440183
affrr 919575766
dblexpo 0
dblmantissa 0
dbltor 4110100
div0r 88655
divir 2759947
divrs 3793892
divru 158971570
divsi 14
divsr 9217
divur 1526502
int2n 71426552
int2u 1332330
invmod2BIL 15087072
invr 7497146
invr_basecase 7497146
mantissa_real 15167037
modii 772793658
modiiz 474681
mul0r 1146785
mulii 4902379026
mulir 125400626
mulrr 2200532853
mulrrz_3 1377181485
mulrrz_3end 1386799641
mulrrz_end 869293340
mulrrz_i 2169962572
mulrrz_int 54676712
mulsi 111126855
mulsr 33547855
mulss 7571432
mului 660467053
mulur 161561832
mulur_2 154455486
muluu 1027628440
rtodbl 14896938
shifti 473918370
sqri 1108978082
sqrr 86967102
sqrs 4152
sqru 238476545
sqrz_i 85292167
truedvmdii 69600654
truedvmdis 69282148
truedvmdsi 5495048
trunc2nr 5237982
usqrt 6342006
vals 582368977

Generated by: LCOV version 1.9