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 19823-d80e022) Lines: 1785 1933 92.3 %
Date: 2016-12-03 05:49:13 Functions: 88 88 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 56510
Qdivii 56758188
Zp_nosquare_m1 21
_serprec 2339594
addQp 359260
addRc 51969365
addRq 490
addTp 7
add_intmod_same 1869736
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14195522
add_ser_scal 201597
addqf 21
addsub_frac 25152108
addsub_polmod 980
addsub_polmod_scal 2593484
addsub_pp 1173655
conjvec 42
divRc 361365
divTp 14000
div_T_scal 1047007
div_intmod_same 29683
div_polmod_same 6789
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147722
div_scal_pol 8183754
div_scal_rfrac 1004057
div_scal_ser 9569
div_ser 735625
div_ser_scal 456227
divcR 3526704
divfq 7
divpT 1218
divpp 215941
divqf 28
ff_poltype 30359
fill_ser 1661419
fix_rfrac 155400
gadd 1705889613
gaddsg 15462852
gconj 1579670
gdiv 128951264
gdivgs 6323623
ginv 12712711
gmul 3309021901
gmul2n 36633486
gmulsg 23801569
gred_rfrac2 43370400
gred_rfrac_simple 54283897
gsqr 908165747
gsub 1456706991
gsubsg 411436
inv_polmod 21343
kro_quad 21
mulRc 52268059
mulRc_direct 35
mulRq 1624
mulTp 156657
mul_gen_rfrac 160830
mul_intmod_same 3062346
mul_polmod 1386
mul_polmod_same 1536367
mul_polmod_scal 1197036
mul_rfrac 7744009
mul_rfrac_scal 9454606
mul_scal 56715290
mul_ser_scal 231029
mulcIR 944471
mulcc 73666156
mulcxI 2147568
mulcxmI 47845
mulpp 1756493
mulqf 14
mulqq 1295
mulrfrac 1583329
quad_polmod_conj 11963
quad_polmod_mul 1013687
quad_polmod_norm 11963
rfrac_denom_mul_scal 9406168
ser_add 1170168
ser_normalize 133
sqr_polmod 24107
sqr_ser_part 10122
sub_intmod_same 262743
warn_coercion 77

Generated by: LCOV version 1.11