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 18609-ea8a867) Lines: 1383 1534 90.2 %
Date: 2016-02-13 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
FpV_Fp_mul_part_ip 1060714
FpV_red_part_ipvec 16808556
Minus 658368
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24185117
ZM_hnf 9906
ZM_hnfall 104242
ZM_hnfcenter 1057
ZM_hnflll 56856
ZM_hnfmod 291015
ZM_hnfmodall 2852486
ZM_hnfmodall_i 2856616
ZM_hnfmodid 2558517
ZM_hnfperm 245
ZM_reduce 1231717
ZM_snf 217
ZM_snf_group 66903
ZM_snf_no_divide 151145
ZM_snfall 1685
ZM_snfall_i 71633
ZM_snfclean 67680
ZV_extgcd 13881
ZV_gcdext_i 13895
ZV_hnfgcdext 21
ZV_snf_group 490
ZV_snfall 777
ZpM_echelon 45867
allhnfmod 2933
bezout_step 86388
col_dup 776895
col_mul 268156
count 3036849
count2 119622
do_zero 0
findi 33539872
findi_normalize 33539872
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28628
hnf_i 8110
hnf_invimage 93191
hnf_solve 24003
hnfadd 0
hnfadd_i 16004
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 55276
hnflll 7
hnfmerge_get_1 184768
hnfmod 14
hnfmodid 2919
hnfperm 14
hnfspec 147
hnfspec_i 39272
hnfswap 2868904
is_RgX 931
mathnf0 126
mathnfspec 147
matsnf0 77
negcmpii 261892
p_mat 0
reduce1 260610
reduce2 16769779
remove_0cols 18780
reverse_rows 113712
smith 28
smithall 14
smithclean 238
snf_group 67393
snf_pile 63932
trivsmith 0
update 67039
zlm_echelon 187926

Generated by: LCOV version 1.9