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 17110-9967e23) Lines: 1338 1485 90.1 %
Date: 2014-11-26 Functions: 71 78 91.0 %
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 684432
FpV_red_part_ipvec 11435104
Minus 215303
RgC_elem 5
RgM_hnfall 15
RgM_reduce 20
RgX_normalize_all 120
ZC_elem 16978883
ZM_hnf 6378
ZM_hnfall 74349
ZM_hnfcenter 515
ZM_hnflll 12881
ZM_hnfmod 171176
ZM_hnfmodall 1897219
ZM_hnfmodall_i 1899934
ZM_hnfmodid 1725873
ZM_hnfperm 175
ZM_reduce 875072
ZM_snf 155
ZM_snf_group 23095
ZM_snf_no_divide 97875
ZM_snfall 1075
ZM_snfall_i 26775
ZM_snfclean 23095
ZV_extgcd 0
ZV_gcdext_i 7835
ZV_hnfgcdext 7840
ZpM_echelon 33627
allhnfmod 60
bezout_step 52925
col_dup 294908
col_mul 189640
count 1986208
count2 50344
do_zero 0
findi 18022839
findi_normalize 18022839
gbezout_step 190
gsmith 30
gsmithall 0
gsmithall_i 30
gsnf_no_divide 80
hnf 0
hnf_divscale 19025
hnf_i 5100
hnf_invimage 64160
hnf_solve 15670
hnfadd 0
hnfadd_i 6868
hnfall 10
hnfallgen 5
hnfdivide 65
hnffinal 11852
hnflll 5
hnfmerge_get_1 129084
hnfmod 10
hnfmodid 50
hnfperm 10
hnfspec 95
hnfspec_i 4984
hnfswap 1215287
is_RgX 665
mathnf0 7915
mathnfspec 95
matsnf0 260
negcmpii 162565
p_mat 0
reduce1 177415
reduce2 9011332
remove_0cols 13022
reverse_rows 25762
smith 20
smithall 215
smithclean 375
snf_pile 26130
trivsmith 0
update 47410
zlm_echelon 131068

Generated by: LCOV version 1.9