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 21505-505a0e1) Lines: 1493 1639 91.1 %
Date: 2017-12-17 06:20:46 Functions: 84 89 94.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpM_echelon 1386149
FpM_hnfend 1374183
FpV_Fp_mul_part_ip 2579534
FpV_red_part_ipvec 9474040
Minus 507218
RgC_elem 7
RgM_hnfall 35
RgM_reduce 42
ZC_elem 19801188
ZM_hnf 19637
ZM_hnf_knapsack 154
ZM_hnfall 2847
ZM_hnfall_i 159382
ZM_hnfcenter 1267
ZM_hnflll 50683
ZM_hnfmod 111713
ZM_hnfmodall 1974257
ZM_hnfmodall_i 1978611
ZM_hnfmodid 1657832
ZM_hnfmodprime 1386149
ZM_hnfperm 238
ZM_reduce 2671035
ZM_rowrankprofile 41592
ZM_snf 301
ZM_snf_group 64140
ZM_snf_no_divide 156898
ZM_snfall 8143
ZM_snfall_i 76056
ZM_snfclean 124837
ZV_extgcd 50918
ZV_gcdext_i 50932
ZV_hnfgcdext 21
ZV_snf_group 60697
ZV_snf_trunc 224
ZV_snfall 60697
ZpM_echelon 46945
allhnfmod 204047
bezout_step 77275
col_dup 637446
col_mul 236720
count 3104809
count2 103273
do_zero 0
findi 36255103
findi_normalize 36255103
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 14
hnf_divscale 180490
hnf_i 17455
hnf_invimage 113211
hnf_invscale 20797
hnf_solve 106876
hnfadd 0
hnfadd_i 17220
hnfall 14
hnfallgen 14
hnfdivide 91
hnffinal 41949
hnflll 7
hnfmerge_get_1 123284
hnfmod 14
hnfmodid 204033
hnfperm 14
hnfspec 322
hnfspec_i 24729
hnfswap 2448825
is_RgX 1001
mathnf0 168
mathnfspec 322
matsnf0 378
negcmpii 359639
normalize_as_RgX 210
p_mat 0
reduce1 368158
reduce2 18127097
remove_0cols 96313
reverse_rows 101366
smith 322
smithall 21
smithclean 539
snf_group 124837
snf_pile 133154
trivsmith 0
update 59180
zlm_echelon 766397

Generated by: LCOV version 1.11