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 16962-5a32637) Lines: 1738 1919 90.6 %
Date: 2014-10-29 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 25453246
addRq 581
addTp 7
add_intmod_same 1008144
add_rfrac 2782012
add_rfrac_scal 8349368
add_scal 13108312
add_ser_scal 4144
addqf 14
addsub_frac 6975662
addsub_polmod 0
addsub_polmod_scal 444660
addsub_pp 217518
conjvec 42
divRc 204324
divTp 63
div_T_scal 757083
div_intmod_same 27762
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 267952
div_ser_scal 4893
divcR 1614853
divfq 7
divpT 889
divpp 40159
divqf 28
ff_poltype 27783
fill_ser 114885
fix_rfrac 156051
gadd 704527723
gaddsg 2635002
gconj 501129
gdiv 84772864
gdivgs 4178273
ginv 7150952
gmul 2188018959
gmul2n 27596444
gmulsg 15050895
gred_frac2 10545058
gred_rfrac2 18289038
gred_rfrac2_i 43547715
gred_rfrac_simple 54132810
gsqr 860118097
gsub 1309185506
gsubsg 312891
inv_polmod 7164
kro_quad 21
mulRc 37185965
mulRc_direct 35
mulRq 1820
mulTp 38976
mul_gen_rfrac 160830
mul_intmod_same 2431954
mul_polmod 7
mul_polmod_same 377322
mul_polmod_scal 47776
mul_rfrac 7746396
mul_rfrac_scal 9512786
mul_scal 53135112
mul_ser_scal 188686
mulcIR 645167
mulcc 50317545
mulcxI 1613607
mulcxmI 46858
mulpp 299481
mulqf 14
mulqq 1344
mulrfrac 968266
quad_polmod_conj 3073
quad_polmod_mul 18585
quad_polmod_norm 3073
rfrac_denom_mul_scal 9375473
ser_add 36925
ser_normalize 56
serprec 73108
sqr_polmod 15207
sqr_ser_part 5334
sub_intmod_same 121279

Generated by: LCOV version 1.9