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 18906-a425091) Lines: 514 558 92.1 %
Date: 2016-05-05 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 30392415
addmulii_gen 19011173
addmulii_inplace 745474365
addmulii_lg3 211038931
affrr 1079292589
dblexpo 0
dblmantissa 0
dbltor 4989293
div0r 90272
divir 2509028
divrs 3466661
divru 313801022
divsi 21
divsr 7726
divur 1270297
int2n 67765575
int2u 3251732
invmod2BIL 22919117
invr 10817959
invr_basecase 10817959
mantissa_real 15621673
modii 1238646324
modiiz 518418
mul0r 1145251
mulii 6872271481
mulir 153196199
mulrr 2378128243
mulrrz_3 1359080340
mulrrz_3end 1374052432
mulrrz_end 1055324155
mulrrz_i 2348718711
mulrrz_int 60503511
mulsi 124362511
mulsr 36918733
mulss 22523736
mului 898112716
mulur 269485542
mulur_2 260605208
muluu 1323838283
rtodbl 54681553
shifti 667833860
sqri 1069056919
sqrr 81099981
sqrs 4187
sqru 404874420
sqrz_i 79821902
truedvmdii 49047588
truedvmdis 48434376
truedvmdsi 6083657
trunc2nr 5982084
usqrt 7141928
vals 1299692905

Generated by: LCOV version 1.9