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 - basemath - gen1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19044-129ab8a) Lines: 1794 1934 92.8 %
Date: 2016-06-27 Functions: 89 89 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1192 1436 83.0 %

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 1813
Zp_nosquare_m1 28
addQp 154772
addRc 43597042
addRq 679
addTp 7
add_intmod_same 1812891
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14500432
add_ser_scal 192896
addqf 21
addsub_frac 23215637
addsub_polmod 980
addsub_polmod_scal 2722965
addsub_pp 948458
conjvec 42
divRc 347879
divTp 70
div_T_scal 1299728
div_intmod_same 29662
div_polmod_same 34153
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147841
div_scal_pol 8184041
div_scal_rfrac 1004057
div_scal_ser 9401
div_ser 701071
div_ser_scal 461872
divcR 3729231
divfq 7
divpT 1134
divpp 92246
divqf 28
ff_poltype 33495
fill_ser 1669415
fix_rfrac 155400
gadd 1657893271
gaddsg 15422294
gconj 1759260
gdiv 131655795
gdivgs 6268141
ginv 9322900
gmul 3278356197
gmul2n 33906690
gmulsg 22362931
gred_frac2 18590854
gred_rfrac2 18174621
gred_rfrac2_i 43370316
gred_rfrac_simple 54259818
gsqr 884967214
gsub 1478252917
gsubsg 598570
inv_polmod 24279
kro_quad 21
mulRc 45029176
mulRc_direct 35
mulRq 1834
mulTp 111362
mul_gen_rfrac 160830
mul_intmod_same 3002040
mul_polmod 1386
mul_polmod_same 1706328
mul_polmod_scal 1173452
mul_rfrac 7744009
mul_rfrac_scal 9454571
mul_scal 58747049
mul_ser_scal 228348
mulcIR 903500
mulcc 69760547
mulcxI 2119092
mulcxmI 47845
mulpp 1234294
mulqf 14
mulqq 1344
mulrfrac 1483408
quad_polmod_conj 13601
quad_polmod_mul 1013147
quad_polmod_norm 13601
rfrac_denom_mul_scal 9411663
ser_add 1182961
ser_normalize 133
serprec 2365180
sqr_polmod 23656
sqr_ser_part 9401
sub_intmod_same 257606
warn_coercion 70

Generated by: LCOV version 1.9