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 16912-212c0f0) Lines: 1738 1919 90.6 %
Date: 2014-10-20 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 25347907
addRq 581
addTp 7
add_intmod_same 1008144
add_rfrac 2782012
add_rfrac_scal 8349368
add_scal 13103376
add_ser_scal 4084
addqf 14
addsub_frac 6972958
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 267425
div_ser_scal 4893
divcR 1614825
divfq 7
divpT 889
divpp 40159
divqf 28
ff_poltype 27776
fill_ser 114590
fix_rfrac 156051
gadd 666637365
gaddsg 2634932
gconj 501204
gdiv 85147287
gdivgs 4173332
ginv 7148679
gmul 2150585922
gmul2n 27554587
gmulsg 14849818
gred_frac2 10916900
gred_rfrac2 18289038
gred_rfrac2_i 43547715
gred_rfrac_simple 54132810
gsqr 855656691
gsub 1309339432
gsubsg 296305
inv_polmod 7164
kro_quad 21
mulRc 37112214
mulRc_direct 35
mulRq 1820
mulTp 38976
mul_gen_rfrac 160830
mul_intmod_same 2431604
mul_polmod 7
mul_polmod_same 377223
mul_polmod_scal 47762
mul_rfrac 7746396
mul_rfrac_scal 9512786
mul_scal 53134013
mul_ser_scal 188321
mulcIR 645188
mulcc 50236874
mulcxI 1613487
mulcxmI 46858
mulpp 299481
mulqf 14
mulqq 1344
mulrfrac 968256
quad_polmod_conj 3073
quad_polmod_mul 18496
quad_polmod_norm 3073
rfrac_denom_mul_scal 9375473
ser_add 36133
ser_normalize 56
serprec 71524
sqr_polmod 15248
sqr_ser_part 4816
sub_intmod_same 121272

Generated by: LCOV version 1.9