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-bordeaux.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 - bb_hnf.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21921-ca7d0c8) Lines: 555 584 95.0 %
Date: 2018-02-20 06:16:13 Functions: 49 51 96.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Z_split 0
Z_stab 0
gen_detops 42
matdetmod 84
gen_inv 35007
matinvmod 35056
gen_reduce_mod_howell 43925
gen_solve 43925
gen_solve_from_howell 43925
matsolvemod_finite 43925
matsolvemod 44009
gen_kernel 54614
matkermod 54649
gen_matid_hermite 56056
mkopswap 74158
gen_howell 91371
gen_kernel_howell 98399
gen_kernel_from_howell 98441
gen_matimage 147385
matimagemod 147420
gen_last_inv_diago 189770
gen_is_inv 205478
get_Fp_hermite 280973
gen_rightapply 374465
gen_howell_i 379372
gen_zeromat 441196
mkopmul 491946
gen_colei 537117
mkopU 878626
gen_zerocol 1199534
_Fp_rann 1714937
gen_is_zerocol 2273488
mkoptransv 2318862
_Fp_extgcd 2770481
gen_elem 2859318
_Fp_unit 3544898
_Fp_lquo 4646733
gen_matmul_hermite 5019392
gen_addcol 5654236
gen_rightlincomb 5718636
gen_addrightmul 10685668
_Fp_neg 11508000
gen_redcol 13397230
_Fp_s 13485724
gen_rightmulcol 15914381
_Fp_equal1 28516033
gen_leftapply 59490872
_Fp_red 83896085
_Fp_add 125683614
_Fp_mul 151098479
_Fp_equal0 229578909

Generated by: LCOV version 1.11