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 19207-2ed2f69) Lines: 1786 1934 92.3 %
Date: 2016-07-25 07:10:32 Functions: 89 89 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 1841
Zp_nosquare_m1 21
_serprec 2254888
addQp 155038
addRc 42564463
addRq 679
addTp 7
add_intmod_same 1813015
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14386647
add_ser_scal 198517
addqf 21
addsub_frac 23737097
addsub_polmod 980
addsub_polmod_scal 2725919
addsub_pp 948619
conjvec 42
divRc 325563
divTp 70
div_T_scal 1278843
div_intmod_same 29762
div_polmod_same 34580
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147960
div_scal_pol 8184300
div_scal_rfrac 1004057
div_scal_ser 9261
div_ser 745157
div_ser_scal 439864
divcR 3415491
divfq 7
divpT 1134
divpp 92365
divqf 28
ff_poltype 33579
fill_ser 1608018
fix_rfrac 155400
gadd 1669660945
gaddsg 15424759
gconj 1507267
gdiv 131732946
gdivgs 6327476
ginv 12419613
gmul 3293990148
gmul2n 35480433
gmulsg 23329362
gred_frac2 18985594
gred_rfrac2 18174684
gred_rfrac2_i 43370372
gred_rfrac_simple 54303638
gsqr 911970617
gsub 1470227887
gsubsg 425331
inv_polmod 24314
kro_quad 21
mulRc 45486633
mulRc_direct 35
mulRq 1834
mulTp 111576
mul_gen_rfrac 160830
mul_intmod_same 3008686
mul_polmod 1386
mul_polmod_same 1707266
mul_polmod_scal 1174383
mul_rfrac 7744009
mul_rfrac_scal 9454578
mul_scal 58552466
mul_ser_scal 228719
mulcIR 895996
mulcc 70491180
mulcxI 2115389
mulcxmI 47845
mulpp 1234756
mulqf 14
mulqq 1344
mulrfrac 1468148
quad_polmod_conj 13706
quad_polmod_mul 1013945
quad_polmod_norm 13706
rfrac_denom_mul_scal 9406119
ser_add 1127815
ser_normalize 133
sqr_polmod 24153
sqr_ser_part 9583
sub_intmod_same 257674
warn_coercion 77

Generated by: LCOV version 1.11