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 16804-345a01c) Lines: 1737 1919 90.5 %
Date: 2014-09-20 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 25517975
addRq 966
addTp 7
add_intmod_same 1407771
add_rfrac 2782334
add_rfrac_scal 8356536
add_scal 13131984
add_ser_scal 5866
addqf 14
addsub_frac 7020885
addsub_polmod 0
addsub_polmod_scal 456616
addsub_pp 217553
conjvec 49
divRc 209336
divTp 63
div_T_scal 761584
div_intmod_same 28609
div_polmod_same 18928
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 28364
fill_ser 119092
fix_rfrac 163681
gadd 670977663
gaddsg 2749700
gconj 504303
gdiv 85447517
gdivgs 4213228
ginv 7196229
gmul 2153530546
gmul2n 27728825
gmulsg 14770018
gred_frac2 10971220
gred_rfrac2 18292349
gred_rfrac2_i 43559447
gred_rfrac_simple 54158920
gsqr 855948563
gsub 1310210368
gsubsg 297788
inv_polmod 7381
kro_quad 21
mulRc 37233778
mulRc_direct 35
mulRq 3031
mulTp 39004
mul_gen_rfrac 160830
mul_intmod_same 3253818
mul_polmod 7
mul_polmod_same 390706
mul_polmod_scal 49162
mul_rfrac 7749007
mul_rfrac_scal 9516097
mul_scal 53185064
mul_ser_scal 198647
mulcIR 647260
mulcc 50349996
mulcxI 1618185
mulcxmI 46865
mulpp 299530
mulqf 14
mulqq 2569
mulrfrac 980482
quad_polmod_conj 3073
quad_polmod_mul 18494
quad_polmod_norm 3073
rfrac_denom_mul_scal 9376425
ser_add 42638
ser_normalize 63
serprec 84534
sqr_polmod 15326
sqr_ser_part 6699
sub_intmod_same 401425

Generated by: LCOV version 1.9