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 - hnf_snf.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18953-2660f45) Lines: 1381 1534 90.0 %
Date: 2016-05-29 Functions: 75 81 92.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1130 1425 79.3 %

Function Name Sort by function name Hit count Sort by hit count
findi 33521522
findi_normalize 33521522
ZC_elem 24048604
FpV_red_part_ipvec 16835490
reduce2 16760604
count 3036961
hnfswap 2869132
ZM_hnfmodall_i 2868999
ZM_hnfmodall 2865177
ZM_hnfmodid 2569486
ZM_reduce 1232382
FpV_Fp_mul_part_ip 1060297
col_dup 777049
Minus 658425
ZM_hnfmod 292611
col_mul 268856
negcmpii 262823
reduce1 260799
zlm_echelon 186173
hnfmerge_get_1 185055
ZM_snf_no_divide 151775
count2 119650
reverse_rows 113866
ZM_hnfall 104669
hnf_invimage 93758
bezout_step 86577
ZM_snfall_i 72186
ZM_snfclean 68142
snf_group 67855
ZM_snf_group 67365
update 67214
snf_pile 64457
ZM_hnflll 56933
hnffinal 55325
ZpM_echelon 45401
hnfspec_i 39300
hnf_divscale 28817
hnf_solve 24458
remove_0cols 19326
hnfadd_i 16025
ZV_gcdext_i 14021
ZV_extgcd 14007
ZM_hnf 10151
hnf_i 8348
allhnfmod 3059
hnfmodid 3045
ZM_snfall 1713
ZM_hnfcenter 952
is_RgX 931
ZV_snfall 777
ZV_snf_group 490
gbezout_step 266
ZM_hnfperm 245
smithclean 238
ZM_snf 217
RgX_normalize_all 168
mathnfspec 147
hnfspec 147
mathnf0 140
gsnf_no_divide 112
hnfdivide 91
matsnf0 77
gsmithall_i 42
gsmith 42
RgM_reduce 28
smith 28
ZV_hnfgcdext 21
RgM_hnfall 21
hnfall 14
hnfmod 14
hnfperm 14
smithall 14
hnfallgen 7
RgC_elem 7
hnflll 7
hnf 0
p_mat 0
hnfadd 0
gsmithall 0
do_zero 0
trivsmith 0

Generated by: LCOV version 1.9