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 18886-5652b70) Lines: 1791 1934 92.6 %
Date: 2016-04-29 Functions: 89 89 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1190 1436 82.9 %

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 1302
Zp_nosquare_m1 28
addQp 150987
addRc 43493893
addRq 679
addTp 7
add_intmod_same 1069694
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14478631
add_ser_scal 192826
addqf 21
addsub_frac 23617994
addsub_polmod 980
addsub_polmod_scal 2722398
addsub_pp 941815
conjvec 42
divRc 345779
divTp 70
div_T_scal 1291629
div_intmod_same 29657
div_polmod_same 34146
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147995
div_scal_pol 8184454
div_scal_rfrac 1004057
div_scal_ser 9331
div_ser 691648
div_ser_scal 453960
divcR 3696030
divfq 7
divpT 1141
divpp 92119
divqf 28
ff_poltype 33439
fill_ser 1645546
fix_rfrac 155386
gadd 1294749001
gaddsg 15421506
gconj 1731545
gdiv 132433689
gdivgs 6235886
ginv 9286155
gmul 2912922612
gmul2n 33852035
gmulsg 22715360
gred_frac2 18308997
gred_rfrac2 18174397
gred_rfrac2_i 43370092
gred_rfrac_simple 54252895
gsqr 884694323
gsub 1478851620
gsubsg 597478
inv_polmod 24279
kro_quad 21
mulRc 44962993
mulRc_direct 35
mulRq 1834
mulTp 103507
mul_gen_rfrac 160830
mul_intmod_same 2508284
mul_polmod 1386
mul_polmod_same 1706069
mul_polmod_scal 1172661
mul_rfrac 7744009
mul_rfrac_scal 9454564
mul_scal 58941054
mul_ser_scal 228411
mulcIR 902436
mulcc 69657051
mulcxI 2118392
mulcxmI 47838
mulpp 1222262
mulqf 14
mulqq 1344
mulrfrac 1480153
quad_polmod_conj 13594
quad_polmod_mul 1013161
quad_polmod_norm 13594
rfrac_denom_mul_scal 9409332
ser_add 1163265
ser_normalize 133
serprec 2325788
sqr_polmod 23677
sqr_ser_part 9373
sub_intmod_same 123095
warn_coercion 70

Generated by: LCOV version 1.9