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-bordeaux1.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 16827-3d78da8) Lines: 1737 1919 90.5 %
Date: 2014-09-29 Functions: 86 87 98.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1152 1428 80.7 %

Function Name Sort by function name Hit count Sort by hit count
Zp_nosquare_m1 28
addQp 70238
addRc 25517989
addRq 966
addTp 7
add_intmod_same 1439930
add_rfrac 2782334
add_rfrac_scal 8356613
add_scal 13134616
add_ser_scal 5887
addqf 14
addsub_frac 7020885
addsub_polmod 0
addsub_polmod_scal 477326
addsub_pp 217553
conjvec 49
divRc 209336
divTp 63
div_T_scal 762284
div_intmod_same 29764
div_polmod_same 20104
div_rfrac 1188989
div_rfrac_pol 253225
div_rfrac_scal 270996
div_scal_T 9146294
div_scal_pol 8187503
div_scal_rfrac 1003766
div_scal_ser 574
div_ser 267491
div_ser_scal 4872
divcR 1620694
divfq 7
divpT 924
divpp 40201
divqf 28
ff_poltype 28406
fill_ser 119148
fix_rfrac 163786
gadd 670964625
gaddsg 2749700
gconj 504303
gdiv 85423241
gdivgs 4213228
ginv 7198182
gmul 2153657603
gmul2n 27697885
gmulsg 14746631
gred_frac2 10953395
gred_rfrac2 18292370
gred_rfrac2_i 43559573
gred_rfrac_simple 54159200
gsqr 855885995
gsub 1310174205
gsubsg 297788
inv_polmod 7409
kro_quad 21
mulRc 37233918
mulRc_direct 35
mulRq 3031
mulTp 39004
mul_gen_rfrac 160830
mul_intmod_same 3289265
mul_polmod 7
mul_polmod_same 415858
mul_polmod_scal 50534
mul_rfrac 7749049
mul_rfrac_scal 9516118
mul_scal 53210966
mul_ser_scal 198717
mulcIR 647260
mulcc 50350507
mulcxI 1618185
mulcxmI 46865
mulpp 299530
mulqf 14
mulqq 2569
mulrfrac 980467
quad_polmod_conj 3073
quad_polmod_mul 18494
quad_polmod_norm 3073
rfrac_denom_mul_scal 9376425
ser_add 42701
ser_normalize 63
serprec 84660
sqr_polmod 15788
sqr_ser_part 6713
sub_intmod_same 408026

Generated by: LCOV version 1.9