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 21350-3349c1d) Lines: 469 496 94.6 %
Date: 2017-11-21 06:21:18 Functions: 44 46 95.7 %
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 28
matdetmod 70
gen_inv 35007
matinvmod 35056
gen_kernel_howell 54523
gen_kernel 54537
gen_kernel_from_howell 54537
matkermod 54572
gen_matid_hermite 56021
mkopswap 59346
gen_howell 91364
gen_last_inv_diago 145887
gen_matimage 147371
matimagemod 147406
gen_is_inv 161483
get_Fp_hermite 236943
gen_howell_i 291466
gen_zeromat 326956
gen_rightapply 374444
mkopmul 380695
gen_colei 451157
mkopU 718410
gen_zerocol 891219
_Fp_rann 1358448
gen_is_zerocol 1790957
mkoptransv 2083669
_Fp_extgcd 2573881
gen_elem 2662711
_Fp_unit 3161361
_Fp_lquo 4259206
gen_matmul_hermite 4417637
gen_addcol 5289951
gen_rightlincomb 5325422
gen_addrightmul 9722685
_Fp_neg 10314367
gen_redcol 11492090
_Fp_s 11646331
gen_rightmulcol 14518692
_Fp_equal1 25773243
gen_leftapply 55726349
_Fp_red 78002559
_Fp_add 121169385
_Fp_mul 145302090
_Fp_equal0 210258273

Generated by: LCOV version 1.11