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 20924-e159ed0) Lines: 1765 1892 93.3 %
Date: 2017-08-21 06:23:16 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 56517
Qdivii 73529915
Zp_nosquare_m1 21
_serprec 2316905
addQp 376550
addRc 54583349
addRq 490
addTp 7
add_intmod_same 1393380
add_rfrac 2971994
add_rfrac_scal 8699156
add_scal 15787573
add_ser_scal 241626
addqf 21
addsub_frac 76726168
addsub_polmod 4858
addsub_polmod_scal 17359105
addsub_pp 1178569
conjvec 42
divRc 409711
divTp 14000
div_T_scal 1262438
div_intmod_same 47159
div_polmod_same 21503
div_rfrac 1186488
div_rfrac_pol 261595
div_rfrac_scal 271015
div_scal_T 10044201
div_scal_pol 9079325
div_scal_rfrac 1004041
div_scal_ser 10465
div_ser 600306
div_ser_scal 449462
divcR 3797962
divfq 7
divpT 1372
divpp 230909
divqf 28
fill_ser 1677954
fix_rfrac 202321
gadd 2169848254
gaddsg 15734987
gconj 1790883
gdiv 146984439
gdivgs 39241541
ginv 13903922
gmul 3760210660
gmul2n 44597713
gmulsg 94390634
gred_rfrac2 44411564
gred_rfrac_simple 57216528
gsqr 1140773387
gsub 1588773432
gsubsg 276847
inv_polmod 87626
kro_quad 21
mulRc 49075966
mulRc_direct 35
mulRq 1624
mulTp 161696
mul_gen_rfrac 160830
mul_intmod_same 1669511
mul_polmod 141127
mul_polmod_same 10426207
mul_polmod_scal 6486797
mul_rfrac 7846725
mul_rfrac_scal 10230671
mul_scal 65249949
mul_ser_scal 243524
mulcIR 1110474
mulcc 72708359
mulcxI 2098208
mulcxmI 48993
mulcxpowIs 147
mulpp 1780350
mulqf 14
mulqq 1295
mulrfrac 2116398
quad_polmod_conj 19097
quad_polmod_mul 5438219
quad_polmod_norm 19097
rfrac_denom_mul_scal 9906528
ser_add 1158946
ser_normalize 182
sqr_polmod 71764
sqr_ser_part 13527
sub_intmod_same 229829
warn_coercion 77

Generated by: LCOV version 1.11