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 16781-61614ca) Lines: 1338 1485 90.1 %
Date: 2014-09-14 Functions: 71 78 91.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1105 1385 79.8 %

Function Name Sort by function name Hit count Sort by hit count
findi 23645058
findi_normalize 23645058
ZC_elem 20808344
FpV_red_part_ipvec 14974936
reduce2 11822403
count 2706406
ZM_hnfmodall_i 2588366
ZM_hnfmodall 2584761
ZM_hnfmodid 2348184
hnfswap 1663050
ZM_reduce 1204610
FpV_Fp_mul_part_ip 929368
col_dup 406798
Minus 293020
col_mul 264684
reduce1 248353
ZM_hnfmod 236325
negcmpii 226492
zlm_echelon 183268
hnfmerge_get_1 179988
ZM_snf_no_divide 136654
ZM_hnfall 104103
hnf_invimage 88459
bezout_step 73696
count2 69224
update 66171
ZpM_echelon 44911
ZM_snfall_i 37618
snf_pile 36799
reverse_rows 34670
ZM_snf_group 32333
ZM_snfclean 32333
hnf_divscale 25809
hnf_solve 21889
remove_0cols 17924
ZM_hnflll 17335
hnffinal 15957
mathnf0 11081
ZV_hnfgcdext 10976
ZV_gcdext_i 10969
hnfadd_i 9448
ZM_hnf 8713
hnf_i 7056
hnfspec_i 6509
ZM_snfall 1456
is_RgX 1330
smithclean 686
ZM_hnfcenter 665
matsnf0 525
smithall 462
gbezout_step 385
ZM_snf 224
RgX_normalize_all 203
gsnf_no_divide 140
ZM_hnfperm 140
mathnfspec 133
hnfspec 133
allhnfmod 98
hnfdivide 91
hnfmodid 77
gsmithall_i 49
gsmith 49
smith 42
RgM_reduce 28
hnfall 21
hnfmod 21
hnfperm 21
RgM_hnfall 21
hnfallgen 7
RgC_elem 7
hnflll 7
hnf 0
p_mat 0
hnfadd 0
ZV_extgcd 0
gsmithall 0
do_zero 0
trivsmith 0

Generated by: LCOV version 1.9