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 16937-4bd9b4e) Lines: 1738 1919 90.6 %
Date: 2014-10-24 Functions: 86 87 98.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1155 1428 80.9 %

Function Name Sort by function name Hit count Sort by hit count
Zp_nosquare_m1 28
addQp 70168
addRc 25348247
addRq 581
addTp 7
add_intmod_same 1008144
add_rfrac 2782012
add_rfrac_scal 8349368
add_scal 13107398
add_ser_scal 4144
addqf 14
addsub_frac 6973276
addsub_polmod 0
addsub_polmod_scal 434206
addsub_pp 217518
conjvec 42
divRc 204324
divTp 63
div_T_scal 756764
div_intmod_same 27769
div_polmod_same 17584
div_rfrac 1188765
div_rfrac_pol 253113
div_rfrac_scal 270996
div_scal_T 9145944
div_scal_pol 8187174
div_scal_rfrac 1003766
div_scal_ser 546
div_ser 267435
div_ser_scal 4893
divcR 1614895
divfq 7
divpT 889
divpp 40159
divqf 28
ff_poltype 27776
fill_ser 114885
fix_rfrac 156051
gadd 700638213
gaddsg 2635051
gconj 501234
gdiv 85183720
gdivgs 4174928
ginv 7148800
gmul 2187273197
gmul2n 27606452
gmulsg 15011879
gred_frac2 10935877
gred_rfrac2 18289038
gred_rfrac2_i 43547715
gred_rfrac_simple 54132810
gsqr 859961297
gsub 1309450308
gsubsg 313098
inv_polmod 7164
kro_quad 21
mulRc 37113982
mulRc_direct 35
mulRq 1820
mulTp 38976
mul_gen_rfrac 160830
mul_intmod_same 2431905
mul_polmod 7
mul_polmod_same 377223
mul_polmod_scal 47762
mul_rfrac 7746396
mul_rfrac_scal 9512786
mul_scal 53134558
mul_ser_scal 188686
mulcIR 645188
mulcc 50238082
mulcxI 1613607
mulcxmI 46858
mulpp 299481
mulqf 14
mulqq 1344
mulrfrac 968266
quad_polmod_conj 3073
quad_polmod_mul 18496
quad_polmod_norm 3073
rfrac_denom_mul_scal 9375473
ser_add 36408
ser_normalize 56
serprec 72074
sqr_polmod 15248
sqr_ser_part 4816
sub_intmod_same 121272

Generated by: LCOV version 1.9