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 19614-52e089f) Lines: 1416 1567 90.4 %
Date: 2016-09-28 05:54:17 Functions: 79 85 92.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
do_zero 0
gsmithall 0
hnf 0
hnfadd 0
p_mat 0
trivsmith 0
RgC_elem 7
hnfallgen 7
hnflll 7
hnfall 14
hnfmod 14
hnfperm 14
RgM_hnfall 21
ZV_hnfgcdext 21
smithall 21
RgM_reduce 28
gsmith 42
gsmithall_i 42
hnfdivide 91
gsnf_no_divide 112
mathnf0 140
RgX_normalize_all 168
ZM_hnf_knapsack 175
ZM_snf 217
ZV_snf_trunc 217
ZM_hnfperm 259
gbezout_step 266
smith 308
hnfspec 315
mathnfspec 315
matsnf0 364
smithclean 525
ZV_snf_group 588
ZV_snfall 875
is_RgX 931
ZM_hnfcenter 1001
ZM_snfall 2032
ZM_hnfall 3066
hnf_i 8712
ZM_hnf 11183
ZV_extgcd 14063
ZV_gcdext_i 14077
hnfadd_i 17458
remove_0cols 20973
hnf_solve 24591
hnfspec_i 43361
ZpM_echelon 45762
ZM_rowrankprofile 60588
hnffinal 60819
ZM_hnflll 62524
update 68560
snf_pile 69951
ZM_snf_group 72029
snf_group 72617
ZM_snfclean 72904
ZM_snfall_i 77624
ZM_hnfmod 79296
bezout_step 89582
hnf_invimage 95869
hnfmodid 104703
allhnfmod 104717
ZM_hnfall_i 106170
count2 124472
reverse_rows 125048
hnf_divscale 155799
ZM_snf_no_divide 155810
zlm_echelon 188916
reduce1 261135
negcmpii 272394
col_mul 274240
hnfmerge_get_1 319722
FpV_Fp_mul_part_ip 456089
Minus 722822
col_dup 826067
ZM_reduce 1307744
hnfswap 3107928
count 3185802
ZM_hnfmodid 3530170
ZM_hnfmodall 3714477
ZM_hnfmodall_i 3718481
reduce2 19388099
FpV_red_part_ipvec 22668766
ZC_elem 32784494
findi 38776604
findi_normalize 38776604

Generated by: LCOV version 1.11