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.1 lcov report (development 22708-0f0e6fe44) Lines: 1720 1826 94.2 %
Date: 2018-06-18 05:36:21 Functions: 89 89 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
kro_quad 21
Zp_nosquare_m1 28
addqf 28
divqf 28
mulRc_direct 49
warn_coercion 77
conjvec 84
addRq 756
mulcxpowIs 1246
mulqq 1316
addsub_polmod 1750
mulRq 1750
divpT 1820
ser_normalize 7525
divTp 14343
quad_polmod_conj 23856
quad_polmod_norm 23856
gconj 26980
div_polmod_same 29427
div_scal_ser 32564
sqr_polmod 34027
mulcxmI 49476
Q_to_Fp 57463
div_intmod_same 59493
inv_polmod 85176
sqr_ser_part 88658
mul_polmod 141148
mul_gen_rfrac 160830
mulTp 162969
divpp 226200
fix_rfrac 249067
div_rfrac_pol 269855
div_rfrac_scal 271022
add_ser_scal 308833
addQp 372279
gsubsg 380987
mul_ser_scal 436850
divRc 488112
div_ser_scal 622123
quad_polmod_mul 675542
div_ser 797877
mul_polmod_scal 902932
div_scal_rfrac 1004055
sub_intmod_same 1101960
div_rfrac 1186509
addsub_pp 1187519
div_T_scal 1480715
ser_add 1769851
mulpp 1787454
mul_polmod_same 1796245
addsub_polmod_scal 1979286
fill_ser 2232603
add_intmod_same 2235769
mulcxI 2282545
mul_intmod_same 2688788
add_rfrac 3037311
_serprec 3538918
mulcIR 4071667
mulrfrac 4411123
divcR 4633609
conj_i 7529474
mul_rfrac 7903558
add_rfrac_scal 8824246
div_scal_pol 9222265
rfrac_denom_mul_scal 10074843
div_scal_T 10209247
mul_rfrac_scal 10442533
gdivgs 10624342
gaddsg 12698628
ginv 15498773
addsub_frac 15832639
add_scal 15975795
gred_rfrac2 44746549
gmul2n 48924138
gred_rfrac_simple 58058644
mul_scal 62195200
Qdivii 66402158
mulRc 68953091
addRc 71211790
mulcc 95118831
gmulsg 98678492
gdiv 160174466
gsqr 1024018614
gsub 1429439680
gadd 1952778091
gmul 3405012843

Generated by: LCOV version 1.13