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 19091-23c3a5b) Lines: 1385 1534 90.3 %
Date: 2016-07-02 Functions: 75 81 92.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1136 1425 79.7 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 1064389
FpV_red_part_ipvec 17268398
Minus 704945
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24577479
ZM_hnf 10158
ZM_hnfall 104669
ZM_hnfcenter 952
ZM_hnflll 60493
ZM_hnfmod 296048
ZM_hnfmodall 2975840
ZM_hnfmodall_i 2979655
ZM_hnfmodid 2676712
ZM_hnfperm 259
ZM_reduce 1230954
ZM_snf 217
ZM_snf_group 70648
ZM_snf_no_divide 152175
ZM_snfall 1720
ZM_snfall_i 75490
ZM_snfclean 71488
ZV_extgcd 14007
ZV_gcdext_i 14021
ZV_hnfgcdext 21
ZV_snf_group 553
ZV_snfall 840
ZpM_echelon 45364
allhnfmod 3059
bezout_step 86942
col_dup 811751
col_mul 268828
count 3052239
count2 122247
do_zero 0
findi 34318050
findi_normalize 34318050
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28901
hnf_i 8355
hnf_invimage 93758
hnf_solve 24458
hnfadd 0
hnfadd_i 16288
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 58878
hnflll 7
hnfmerge_get_1 218970
hnfmod 14
hnfmodid 3045
hnfperm 14
hnfspec 147
hnfspec_i 42590
hnfswap 2997590
is_RgX 931
mathnf0 140
mathnfspec 147
matsnf0 84
negcmpii 266240
p_mat 0
reduce1 260799
reduce2 17158868
remove_0cols 19340
reverse_rows 120986
smith 28
smithall 21
smithclean 245
snf_group 71201
snf_pile 67817
trivsmith 0
update 67207
zlm_echelon 186049

Generated by: LCOV version 1.9