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.10.0 lcov report (development 20422-b487f4d) Lines: 1489 1637 91.0 %
Date: 2017-03-22 05:51:54 Functions: 84 89 94.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpM_echelon 1299116
FpM_hnfend 1292837
FpV_Fp_mul_part_ip 2504717
FpV_red_part_ipvec 7331942
Minus 721760
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 13489055
ZM_hnf 8793
ZM_hnf_knapsack 147
ZM_hnfall 3014
ZM_hnfall_i 96955
ZM_hnfcenter 1064
ZM_hnflll 63767
ZM_hnfmod 71001
ZM_hnfmodall 1617305
ZM_hnfmodall_i 1621596
ZM_hnfmodid 1456026
ZM_hnfmodprime 1299116
ZM_hnfperm 231
ZM_reduce 1233929
ZM_rowrankprofile 60767
ZM_snf 217
ZM_snf_group 62215
ZM_snf_no_divide 130630
ZM_snfall 2130
ZM_snfall_i 68027
ZM_snfclean 67591
ZV_extgcd 14245
ZV_gcdext_i 14259
ZV_hnfgcdext 21
ZV_snf_group 5376
ZV_snf_trunc 224
ZV_snfall 5376
ZpM_echelon 46545
allhnfmod 89977
bezout_step 63038
col_dup 826030
col_mul 170248
count 3179373
count2 123426
do_zero 0
findi 37972622
findi_normalize 37972622
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 14
hnf_divscale 149663
hnf_i 6423
hnf_invimage 18634
hnf_invscale 12971
hnf_solve 12957
hnfadd 0
hnfadd_i 17552
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 60998
hnflll 7
hnfmerge_get_1 147126
hnfmod 14
hnfmodid 89963
hnfperm 14
hnfspec 322
hnfspec_i 43446
hnfswap 3097549
is_RgX 931
mathnf0 154
mathnfspec 322
matsnf0 378
negcmpii 241419
p_mat 0
reduce1 263207
reduce2 18986105
remove_0cols 18765
reverse_rows 127534
smith 322
smithall 21
smithclean 539
snf_group 67591
snf_pile 64820
trivsmith 0
update 42562
zlm_echelon 707521

Generated by: LCOV version 1.11