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 20459-9710128) Lines: 1775 1906 93.1 %
Date: 2017-04-28 05:33:48 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 48438
Qdivii 51450470
Zp_nosquare_m1 18
_serprec 2135262
addQp 309410
addRc 44301951
addRq 420
addTp 6
add_intmod_same 1614328
add_rfrac 2263548
add_rfrac_scal 6877734
add_scal 11585364
add_ser_scal 186402
addqf 18
addsub_frac 39789991
addsub_polmod 840
addsub_polmod_scal 2235834
addsub_pp 1005990
conjvec 36
divRc 306354
divTp 12000
div_T_scal 964032
div_intmod_same 25985
div_polmod_same 5880
div_rfrac 941130
div_rfrac_pol 195312
div_rfrac_scal 195174
div_scal_T 8163966
div_scal_pol 7362972
div_scal_rfrac 834852
div_scal_ser 8706
div_ser 519222
div_ser_scal 415416
divcR 2971356
divfq 6
divpT 1044
divpp 186546
divqf 24
ff_poltype 26100
fill_ser 1508610
fix_rfrac 133206
gadd 1487197317
gaddsg 13530311
gconj 1361496
gdiv 110740555
gdivgs 5338586
ginv 10314308
gmul 2873319034
gmul2n 31067334
gmulsg 20217829
gred_rfrac2 36624138
gred_rfrac_simple 47306124
gsqr 830357637
gsub 1256131719
gsubsg 202272
inv_polmod 18234
kro_quad 18
mulRc 42101106
mulRc_direct 30
mulRq 1392
mulTp 134360
mul_gen_rfrac 115104
mul_intmod_same 2626382
mul_polmod 1188
mul_polmod_same 1375314
mul_polmod_scal 1049892
mul_rfrac 6536064
mul_rfrac_scal 8410014
mul_scal 47767944
mul_ser_scal 205302
mulcIR 793764
mulcc 62538282
mulcxI 1510350
mulcxmI 41106
mulpp 1507057
mulqf 12
mulqq 1110
mulrfrac 1518930
quad_polmod_conj 10260
quad_polmod_mul 871974
quad_polmod_norm 10260
rfrac_denom_mul_scal 7972692
ser_add 1068054
ser_normalize 156
sqr_polmod 22158
sqr_ser_part 10764
sub_intmod_same 220191
warn_coercion 66

Generated by: LCOV version 1.11