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 16624-25b9976) Lines: 1765 1950 90.5 %
Date: 2014-06-24 Functions: 86 87 98.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1160 1444 80.3 %

Function Name Sort by function name Hit count Sort by hit count
NORMALIZE_i 1275
Zp_nosquare_m1 20
addQp 49190
addRc 35542906
addRq 690
addTp 5
add_intmod_same 1007339
add_rfrac 2063248
add_rfrac_scal 6132999
add_scal 9600244
add_ser_scal 3945
addqf 10
addsub_frac 5063486
addsub_polmod 0
addsub_polmod_scal 310041
addsub_pp 148555
conjvec 35
divRc 159320
divTp 45
div_T_scal 564218
div_intmod_same 20404
div_polmod_same 13485
div_rfrac 874521
div_rfrac_pol 188093
div_rfrac_scal 205876
div_scal_T 6612188
div_scal_pol 5918765
div_scal_rfrac 725548
div_scal_ser 410
div_ser 192025
div_ser_scal 3480
divcR 1097667
divfq 5
divpT 660
divpp 28395
divqf 20
ff_poltype 14130
fill_ser 101182
fix_rfrac 116915
gadd 565167238
gaddsg 1929608
gconj 366539
gdiv 62422504
gdivgs 3051902
ginv 5194123
gmul 1622898618
gmul2n 20928790
gmulsg 10799783
gred_frac2 8186326
gred_rfrac2 13292749
gred_rfrac2_i 31535529
gred_rfrac_simple 39032669
gsqr 617809757
gsub 938783115
gsubsg 249989
inv_polmod 5269
inv_ser 210
kro_quad 15
mulRc 37788506
mulRc_direct 25
mulRq 2165
mulTp 23980
mul_gen_rfrac 122462
mul_intmod_same 2325150
mul_polmod 5
mul_polmod_same 275295
mul_polmod_scal 34915
mul_rfrac 5598195
mul_rfrac_scal 6858467
mul_scal 38567308
mul_ser_scal 119912
mulcIR 467365
mulcc 35409080
mulcxI 1166897
mulcxmI 33455
mulpp 204315
mulqf 10
mulqq 1835
mulrfrac 724251
quad_polmod_conj 2165
quad_polmod_mul 12906
quad_polmod_norm 2165
rfrac_denom_mul_scal 6833534
ser_normalize 45
sqr_polmod 10683
sqr_ser_part 4750
sub_intmod_same 288531

Generated by: LCOV version 1.9