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 17433-48485c0) Lines: 1341 1485 90.3 %
Date: 2015-02-01 Functions: 72 78 92.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1107 1385 79.9 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 958362
FpV_red_part_ipvec 16396120
Minus 301483
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24255820
ZM_hnf 9228
ZM_hnfall 104530
ZM_hnfcenter 889
ZM_hnflll 18434
ZM_hnfmod 243223
ZM_hnfmodall 2715961
ZM_hnfmodall_i 2720140
ZM_hnfmodid 2472633
ZM_hnfperm 245
ZM_reduce 1231766
ZM_snf 217
ZM_snf_group 32781
ZM_snf_no_divide 138222
ZM_snfall 1622
ZM_snfall_i 38050
ZM_snfclean 32781
ZV_extgcd 63
ZV_gcdext_i 11032
ZV_hnfgcdext 10976
ZpM_echelon 45671
allhnfmod 84
bezout_step 74627
col_dup 412940
col_mul 267624
count 2771847
count2 70436
do_zero 0
findi 25313486
findi_normalize 25313486
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28747
hnf_i 7368
hnf_invimage 91196
hnf_solve 22176
hnfadd 0
hnfadd_i 9849
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 16910
hnflll 7
hnfmerge_get_1 184041
hnfmod 14
hnfmodid 70
hnfperm 14
hnfspec 133
hnfspec_i 7061
hnfswap 1704793
is_RgX 931
mathnf0 11081
mathnfspec 133
matsnf0 364
negcmpii 229507
p_mat 0
reduce1 248976
reduce2 12656607
remove_0cols 18788
reverse_rows 36868
smith 28
smithall 301
smithclean 525
snf_pile 37056
trivsmith 0
update 66906
zlm_echelon 187093

Generated by: LCOV version 1.9