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 17784-cfd2407) Lines: 1341 1485 90.3 %
Date: 2015-04-27 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
findi 25313494
findi_normalize 25313494
ZC_elem 24349528
FpV_red_part_ipvec 16435902
reduce2 12656611
count 2771848
ZM_hnfmodall_i 2722240
ZM_hnfmodall 2718313
ZM_hnfmodid 2474796
hnfswap 1704732
ZM_reduce 1231136
FpV_Fp_mul_part_ip 958607
col_dup 412940
Minus 301483
col_mul 267372
reduce1 248696
ZM_hnfmod 243412
negcmpii 229227
zlm_echelon 185812
hnfmerge_get_1 184349
ZM_snf_no_divide 138033
ZM_hnfall 104530
hnf_invimage 91154
bezout_step 74564
count2 70436
update 66843
ZpM_echelon 45321
ZM_snfall_i 38050
snf_pile 37056
reverse_rows 36868
ZM_snf_group 32781
ZM_snfclean 32781
hnf_divscale 28747
hnf_solve 22134
remove_0cols 18788
ZM_hnflll 18434
hnffinal 16910
mathnf0 11081
ZV_gcdext_i 11032
ZV_hnfgcdext 10976
hnfadd_i 9849
ZM_hnf 9228
hnf_i 7368
hnfspec_i 7061
ZM_snfall 1622
is_RgX 931
ZM_hnfcenter 812
smithclean 525
matsnf0 364
smithall 301
gbezout_step 266
ZM_hnfperm 245
ZM_snf 217
RgX_normalize_all 168
mathnfspec 133
hnfspec 133
gsnf_no_divide 112
hnfdivide 91
allhnfmod 84
hnfmodid 70
ZV_extgcd 63
gsmithall_i 42
gsmith 42
RgM_reduce 28
smith 28
RgM_hnfall 21
hnfall 14
hnfmod 14
hnfperm 14
hnfallgen 7
RgC_elem 7
hnflll 7
hnf 0
p_mat 0
hnfadd 0
gsmithall 0
do_zero 0
trivsmith 0

Generated by: LCOV version 1.9