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.10.0 lcov report (development 21355-49ee849) Lines: 1745 1865 93.6 %
Date: 2017-11-25 06:21:19 Functions: 88 88 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addTp 7
divfq 7
mulqf 14
Zp_nosquare_m1 21
addqf 21
kro_quad 21
divqf 28
mulRc_direct 35
conjvec 56
warn_coercion 77
ser_normalize 182
mulcxpowIs 364
addRq 490
addsub_polmod 1022
mulqq 1295
divpT 1372
mulRq 1624
div_scal_ser 10773
divTp 13930
sqr_ser_part 14430
quad_polmod_conj 16618
quad_polmod_norm 16618
div_polmod_same 26928
sqr_polmod 33537
div_intmod_same 45046
mulcxmI 49189
Q_to_Fp 56430
inv_polmod 84609
mul_polmod 139671
mul_gen_rfrac 160830
mulTp 161539
fix_rfrac 202335
divpp 232049
mul_ser_scal 242845
add_ser_scal 244146
div_rfrac_pol 261595
div_rfrac_scal 271015
gsubsg 354548
addQp 376417
div_ser_scal 458268
divRc 492432
quad_polmod_mul 539809
div_ser 606445
mul_polmod_scal 790092
div_scal_rfrac 1004041
sub_intmod_same 1104334
ser_add 1180793
addsub_pp 1182988
div_rfrac 1186488
div_T_scal 1269862
fill_ser 1707368
mul_polmod_same 1780488
mulpp 1785108
addsub_polmod_scal 1976010
mul_intmod_same 2069743
add_intmod_same 2070836
mulcxI 2118116
_serprec 2360599
mulcIR 2733669
add_rfrac 2972218
divcR 4639331
gdivgs 7213607
mul_rfrac 7846725
add_rfrac_scal 8698932
div_scal_pol 9092044
mulrfrac 9246622
rfrac_denom_mul_scal 9885843
div_scal_T 10057228
mul_rfrac_scal 10230685
addsub_frac 11876149
gconj 12612752
ginv 13544340
add_scal 15771130
gaddsg 18039008
gred_rfrac2 44410871
gmul2n 44641172
gred_rfrac_simple 57225727
mulRc 60892353
mul_scal 61022909
addRc 63467933
Qdivii 65406695
gmulsg 87188512
mulcc 98296739
gdiv 144626875
gsqr 991570537
gsub 1410055623
gadd 1763084385
gmul 3225524240

Generated by: LCOV version 1.11