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-bordeaux1.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 18579-f9e35ad) Lines: 1791 1934 92.6 %
Date: 2016-02-06 Functions: 89 89 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1192 1436 83.0 %

Function Name Sort by function name Hit count Sort by hit count
Q_to_Fp 1001
Zp_nosquare_m1 28
addQp 149331
addRc 42325574
addRq 679
addTp 7
add_intmod_same 1020094
add_rfrac 2781571
add_rfrac_scal 8350131
add_scal 14399068
add_ser_scal 197383
addqf 21
addsub_frac 22145033
addsub_polmod 973
addsub_polmod_scal 2714371
addsub_pp 939995
conjvec 42
divRc 319883
divTp 70
div_T_scal 1405492
div_intmod_same 28162
div_polmod_same 32018
div_rfrac 1186329
div_rfrac_pol 253127
div_rfrac_scal 270646
div_scal_T 9148275
div_scal_pol 8184391
div_scal_rfrac 1004057
div_scal_ser 9653
div_ser 740126
div_ser_scal 572000
divcR 2902395
divfq 7
divpT 917
divpp 91164
divqf 28
ff_poltype 32459
fill_ser 1995298
fix_rfrac 155386
gadd 1062764210
gaddsg 14222765
gconj 1181465
gdiv 126284296
gdivgs 5527476
ginv 9160919
gmul 2678223440
gmul2n 33494464
gmulsg 23602542
gred_frac2 16959228
gred_rfrac2 18174397
gred_rfrac2_i 43370218
gred_rfrac_simple 54248240
gsqr 866290502
gsub 1475734382
gsubsg 576526
inv_polmod 23992
kro_quad 21
mulRc 44120870
mulRc_direct 35
mulRq 1834
mulTp 101343
mul_gen_rfrac 160830
mul_intmod_same 2466767
mul_polmod 1386
mul_polmod_same 1695805
mul_polmod_scal 1170484
mul_rfrac 7744023
mul_rfrac_scal 9454662
mul_scal 58890796
mul_ser_scal 211478
mulcIR 893158
mulcc 67706617
mulcxI 2099593
mulcxmI 47838
mulpp 1216574
mulqf 14
mulqq 1344
mulrfrac 1317906
quad_polmod_conj 13454
quad_polmod_mul 1013105
quad_polmod_norm 13454
rfrac_denom_mul_scal 9409346
ser_add 1452576
ser_normalize 56
serprec 2904410
sqr_polmod 23635
sqr_ser_part 8834
sub_intmod_same 122351
warn_coercion 70

Generated by: LCOV version 1.9