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 19191-d7615ef) Lines: 1386 1537 90.2 %
Date: 2016-07-23 07:10:28 Functions: 75 81 92.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 1065142
FpV_red_part_ipvec 18227678
Minus 711902
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 25656258
ZM_hnf 10144
ZM_hnfall 104669
ZM_hnfcenter 952
ZM_hnflll 60934
ZM_hnfmod 296624
ZM_hnfmodall 3216243
ZM_hnfmodall_i 3220058
ZM_hnfmodid 2916539
ZM_hnfperm 259
ZM_reduce 1230947
ZM_snf 217
ZM_snf_group 71084
ZM_snf_no_divide 152224
ZM_snfall 1706
ZM_snfall_i 75912
ZM_snfclean 71924
ZV_extgcd 14007
ZV_gcdext_i 14021
ZV_hnfgcdext 21
ZV_snf_group 553
ZV_snfall 840
ZpM_echelon 45364
allhnfmod 3059
bezout_step 86990
col_dup 816214
col_mul 268828
count 3053838
count2 122370
do_zero 0
findi 34457262
findi_normalize 34457262
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28901
hnf_i 8341
hnf_invimage 93758
hnf_solve 24458
hnfadd 0
hnfadd_i 16321
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 59333
hnflll 7
hnfmerge_get_1 278876
hnfmod 14
hnfmodid 3045
hnfperm 14
hnfspec 147
hnfspec_i 43012
hnfswap 3018083
is_RgX 931
mathnf0 140
mathnfspec 147
matsnf0 84
negcmpii 266676
p_mat 0
reduce1 260799
reduce2 17228474
remove_0cols 19312
reverse_rows 121868
smith 28
smithall 21
smithclean 245
snf_group 71637
snf_pile 68253
trivsmith 0
update 67207
zlm_echelon 186049

Generated by: LCOV version 1.11