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 20777-d2a9243) Lines: 1782 1912 93.2 %
Date: 2017-06-25 05:59:24 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 56517
Qdivii 67598313
Zp_nosquare_m1 21
_serprec 2316793
addQp 379656
addRc 54338851
addRq 490
addTp 7
add_intmod_same 1888870
add_rfrac 2945203
add_rfrac_scal 8683983
add_scal 15592966
add_ser_scal 241605
addqf 21
addsub_frac 53511204
addsub_polmod 980
addsub_polmod_scal 13881962
addsub_pp 1173655
conjvec 42
divRc 404261
divTp 14000
div_T_scal 1237994
div_intmod_same 30938
div_polmod_same 13152
div_rfrac 1186336
div_rfrac_pol 253127
div_rfrac_scal 270779
div_scal_T 10043503
div_scal_pol 9078646
div_scal_rfrac 1004057
div_scal_ser 10458
div_ser 600271
div_ser_scal 449462
divcR 3739141
divfq 7
divpT 1253
divpp 231795
divqf 28
ff_poltype 30541
fill_ser 1677856
fix_rfrac 155407
gadd 2047767689
gaddsg 15736261
gconj 1779669
gdiv 139326531
gdivgs 38556805
ginv 12589649
gmul 3596554194
gmul2n 42599852
gmulsg 93750187
gred_rfrac2 44360753
gred_rfrac_simple 57010104
gsqr 984613670
gsub 1551819748
gsubsg 275728
inv_polmod 83685
kro_quad 21
mulRc 48705828
mulRc_direct 35
mulRq 1624
mulTp 161892
mul_gen_rfrac 160830
mul_intmod_same 3071633
mul_polmod 1981
mul_polmod_same 8548107
mul_polmod_scal 5968053
mul_rfrac 7846573
mul_rfrac_scal 10189011
mul_scal 63991605
mul_ser_scal 243363
mulcIR 1033720
mulcc 71723103
mulcxI 1955346
mulcxmI 48993
mulcxpowIs 147
mulpp 1778144
mulqf 14
mulqq 1295
mulrfrac 2115216
quad_polmod_conj 14112
quad_polmod_mul 5131598
quad_polmod_norm 14112
rfrac_denom_mul_scal 9905394
ser_add 1158890
ser_normalize 182
sqr_polmod 31067
sqr_ser_part 13513
sub_intmod_same 265073
warn_coercion 77

Generated by: LCOV version 1.11