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 18946-c0ba5ba) Lines: 1794 1934 92.8 %
Date: 2016-05-25 Functions: 89 89 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1191 1436 82.9 %

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 1302
Zp_nosquare_m1 28
addQp 151178
addRc 43482000
addRq 679
addTp 7
add_intmod_same 1812810
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14474654
add_ser_scal 192826
addqf 21
addsub_frac 23584708
addsub_polmod 980
addsub_polmod_scal 2722706
addsub_pp 941815
conjvec 42
divRc 345779
divTp 70
div_T_scal 1292020
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 3694602
divfq 7
divpT 1141
divpp 92297
divqf 28
ff_poltype 33495
fill_ser 1645560
fix_rfrac 155400
gadd 1304419513
gaddsg 15421748
gconj 1731078
gdiv 132423243
gdivgs 6241674
ginv 9286076
gmul 2921326313
gmul2n 33850344
gmulsg 22711582
gred_frac2 18301782
gred_rfrac2 18174411
gred_rfrac2_i 43370106
gred_rfrac_simple 54252909
gsqr 884728569
gsub 1478563930
gsubsg 597667
inv_polmod 24279
kro_quad 21
mulRc 44958098
mulRc_direct 35
mulRq 1834
mulTp 103526
mul_gen_rfrac 160830
mul_intmod_same 3001909
mul_polmod 1386
mul_polmod_same 1706195
mul_polmod_scal 1173123
mul_rfrac 7744009
mul_rfrac_scal 9454571
mul_scal 58961173
mul_ser_scal 228418
mulcIR 902436
mulcc 69648365
mulcxI 2118392
mulcxmI 47838
mulpp 1222458
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 1163300
ser_normalize 133
serprec 2325858
sqr_polmod 23677
sqr_ser_part 9373
sub_intmod_same 257586
warn_coercion 70

Generated by: LCOV version 1.9