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 17242-6994acc) Lines: 1341 1485 90.3 %
Date: 2014-12-22 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 25359770
findi_normalize 25359770
ZC_elem 24201644
FpV_red_part_ipvec 16352636
reduce2 12679749
count 2785497
ZM_hnfmodall_i 2714834
ZM_hnfmodall 2710781
ZM_hnfmodid 2467775
hnfswap 1707117
ZM_reduce 1231437
FpV_Fp_mul_part_ip 957155
col_dup 414249
Minus 302470
col_mul 267428
reduce1 248948
ZM_hnfmod 242768
negcmpii 229339
zlm_echelon 186749
hnfmerge_get_1 183747
ZM_snf_no_divide 138124
ZM_hnfall 104446
hnf_invimage 91056
bezout_step 74578
count2 70709
update 66857
ZpM_echelon 45630
ZM_snfall_i 37952
snf_pile 36986
reverse_rows 36840
ZM_snf_group 32711
ZM_snfclean 32711
hnf_divscale 28348
hnf_solve 22134
remove_0cols 18753
ZM_hnflll 18420
hnffinal 16889
mathnf0 11081
ZV_gcdext_i 11018
ZV_hnfgcdext 10976
hnfadd_i 9821
ZM_hnf 9228
hnf_i 7382
hnfspec_i 7068
ZM_snfall 1594
is_RgX 931
ZM_hnfcenter 826
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 49
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