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 - hnf_snf.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18579-f9e35ad) Lines: 1383 1534 90.2 %
Date: 2016-02-06 Functions: 75 81 92.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1130 1423 79.4 %

Function Name Sort by function name Hit count Sort by hit count
findi 33539872
findi_normalize 33539872
ZC_elem 24185117
FpV_red_part_ipvec 16808556
reduce2 16769779
count 3036849
hnfswap 2868904
ZM_hnfmodall_i 2856616
ZM_hnfmodall 2852486
ZM_hnfmodid 2558517
ZM_reduce 1231717
FpV_Fp_mul_part_ip 1060714
col_dup 776895
Minus 658368
ZM_hnfmod 291015
col_mul 268156
negcmpii 261899
reduce1 260610
zlm_echelon 187926
hnfmerge_get_1 184768
ZM_snf_no_divide 151145
count2 119622
reverse_rows 113712
ZM_hnfall 104242
hnf_invimage 93191
bezout_step 86388
ZM_snfall_i 71633
ZM_snfclean 67680
snf_group 67393
update 67039
ZM_snf_group 66903
snf_pile 63932
ZM_hnflll 56856
hnffinal 55276
ZpM_echelon 45867
hnfspec_i 39272
hnf_divscale 28628
hnf_solve 24003
remove_0cols 18780
hnfadd_i 16004
ZV_gcdext_i 13895
ZV_extgcd 13881
ZM_hnf 9906
hnf_i 8110
allhnfmod 2933
hnfmodid 2919
ZM_snfall 1685
ZM_hnfcenter 1057
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 126
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