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 19369-efd6c3d) Lines: 1786 1934 92.3 %
Date: 2016-08-29 06:11:50 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 1869
Zp_nosquare_m1 21
_serprec 2312598
addQp 155726
addRc 45859079
addRq 679
addTp 7
add_intmod_same 1813019
add_rfrac 2781571
add_rfrac_scal 8350089
add_scal 14223725
add_ser_scal 201072
addqf 21
addsub_frac 23377022
addsub_polmod 980
addsub_polmod_scal 2569023
addsub_pp 949522
conjvec 42
divRc 347196
divTp 91
div_T_scal 1061672
div_intmod_same 29761
div_polmod_same 6944
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9147631
div_scal_pol 8183747
div_scal_rfrac 1004057
div_scal_ser 9485
div_ser 732049
div_ser_scal 451420
divcR 3517089
divfq 7
divpT 1134
divpp 92862
divqf 28
ff_poltype 29855
fill_ser 1645717
fix_rfrac 155400
gadd 1680466184
gaddsg 15430631
gconj 1576736
gdiv 130637636
gdivgs 6228702
ginv 12492877
gmul 3298846059
gmul2n 35589855
gmulsg 23376906
gred_frac2 18737535
gred_rfrac2 18174684
gred_rfrac2_i 43370393
gred_rfrac_simple 54283772
gsqr 913198612
gsub 1468594765
gsubsg 410617
inv_polmod 20990
kro_quad 21
mulRc 47487296
mulRc_direct 35
mulRq 1834
mulTp 112576
mul_gen_rfrac 160830
mul_intmod_same 3008683
mul_polmod 1386
mul_polmod_same 1528675
mul_polmod_scal 1177885
mul_rfrac 7744009
mul_rfrac_scal 9454599
mul_scal 57644927
mul_ser_scal 229321
mulcIR 897932
mulcc 70587275
mulcxI 2119481
mulcxmI 47845
mulpp 1236458
mulqf 14
mulqq 1344
mulrfrac 1554570
quad_polmod_conj 11844
quad_polmod_mul 1013349
quad_polmod_norm 11844
rfrac_denom_mul_scal 9406161
ser_add 1156670
ser_normalize 133
sqr_polmod 24351
sqr_ser_part 9590
sub_intmod_same 257672
warn_coercion 77

Generated by: LCOV version 1.11