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 19043-64ae2d8) Lines: 514 558 92.1 %
Date: 2016-06-25 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 429 562 76.3 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 29622220
addmulii_gen 19009024
addmulii_inplace 745371787
addmulii_lg3 210351033
affrr 1079870831
dblexpo 0
dblmantissa 0
dbltor 4986637
div0r 90272
divir 2508902
divrs 3466941
divru 314186595
divsi 21
divsr 7726
divur 1269984
int2n 70396601
int2u 3253790
invmod2BIL 23210404
invr 10849355
invr_basecase 10849355
mantissa_real 15619238
modii 1265650191
modiiz 518501
mul0r 1145391
mulii 7010638790
mulir 153320728
mulrr 2380017430
mulrrz_3 1359230604
mulrrz_3end 1374198062
mulrrz_end 1057158565
mulrrz_i 2350608809
mulrrz_int 60532797
mulsi 125030435
mulsr 37003874
mulss 29960979
mului 898433735
mulur 269609843
mulur_2 260811614
muluu 1394305096
rtodbl 54850518
shifti 674834695
sqri 1071232189
sqrr 81185382
sqrs 4187
sqru 422233157
sqrz_i 79911819
truedvmdii 48461828
truedvmdis 47848221
truedvmdsi 6083713
trunc2nr 5987309
usqrt 3576590
vals 1351193548

Generated by: LCOV version 1.9