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 19614-52e089f) Lines: 1786 1933 92.4 %
Date: 2016-09-28 05:54:17 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 117574
Qdivii 56210749
Zp_nosquare_m1 21
_serprec 2318234
addQp 310256
addRc 52469153
addRq 490
addTp 7
add_intmod_same 1813055
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14246210
add_ser_scal 201121
addqf 21
addsub_frac 25172452
addsub_polmod 980
addsub_polmod_scal 2599288
addsub_pp 1176287
conjvec 42
divRc 363916
divTp 15785
div_T_scal 1046534
div_intmod_same 29680
div_polmod_same 6789
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147659
div_scal_pol 8183754
div_scal_rfrac 1004057
div_scal_ser 9506
div_ser 733104
div_ser_scal 452312
divcR 3547857
divfq 7
divpT 1218
divpp 214632
divqf 28
ff_poltype 30352
fill_ser 1648533
fix_rfrac 155400
gadd 1716371161
gaddsg 15452876
gconj 1606874
gdiv 128071061
gdivgs 6273374
ginv 12731117
gmul 3320022061
gmul2n 36697747
gmulsg 23781632
gred_rfrac2 43370400
gred_rfrac_simple 54283862
gsqr 914350140
gsub 1461866746
gsubsg 411114
inv_polmod 21280
kro_quad 21
mulRc 51535793
mulRc_direct 35
mulRq 1624
mulTp 144249
mul_gen_rfrac 160830
mul_intmod_same 3008938
mul_polmod 1386
mul_polmod_same 1543379
mul_polmod_scal 1197023
mul_rfrac 7744009
mul_rfrac_scal 9454606
mul_scal 57525194
mul_ser_scal 229370
mulcIR 935821
mulcc 71985162
mulcxI 2135503
mulcxmI 47845
mulpp 1716429
mulqf 14
mulqq 1295
mulrfrac 1576369
quad_polmod_conj 11963
quad_polmod_mul 1014147
quad_polmod_norm 11963
rfrac_denom_mul_scal 9406168
ser_add 1159488
ser_normalize 133
sqr_polmod 24615
sqr_ser_part 10052
sub_intmod_same 257681
warn_coercion 77

Generated by: LCOV version 1.11