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 to exceed 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.12.0 lcov report (development 23008-54b2e2f01) Lines: 600 639 93.9 %
Date: 2018-09-20 05:37:46 Functions: 51 55 92.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Z_split 0
Z_stab 0
gaussmodulo 0
gaussmodulo2 0
gen_detops 42
gaussmoduloall 70
msolvemod0 70
matdetmod 84
gen_inv 35007
matinvmod 35056
gen_reduce_mod_howell 43925
gen_solve 43925
gen_solve_from_howell 43925
matsolvemod_finite 43925
matsolvemod 44072
mkopswap 45724
gen_kernel 54649
matkermod 54684
gen_matid_hermite 56056
gen_howell 94941
gen_kernel_howell 98434
gen_kernel_from_howell 98476
gen_matimage 150955
matimagemod 150990
gen_last_inv_diago 193375
gen_is_inv 209258
get_Fp_hermite 284578
gen_colei 364420
gen_rightapply 374465
gen_howell_i 383012
gen_zeromat 441231
mkopmul 463827
mkopU 748573
gen_zerocol 970165
mkoptransv 1203685
_Fp_rann 1309658
gen_matmul_hermite 2001902
gen_is_zerocol 2101967
_Fp_lquo 2197762
gen_addrightmul 2285535
_Fp_neg 2757713
_Fp_extgcd 2961371
gen_elem 3050208
_Fp_unit 3353035
gen_addcol 4864433
gen_rightlincomb 6100416
gen_leftapply 9582496
_Fp_s 9938530
gen_redcol 11323564
gen_rightmulcol 15241730
_Fp_equal1 19201812
_Fp_add 22489516
_Fp_red 31555636
_Fp_mul 32836587
_Fp_equal0 65470874

Generated by: LCOV version 1.13