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 16791-0d1274a) Lines: 1338 1485 90.1 %
Date: 2014-09-16 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
FpV_Fp_mul_part_ip 672534
FpV_red_part_ipvec 10699072
Minus 209246
RgC_elem 5
RgM_hnfall 15
RgM_reduce 20
RgX_normalize_all 145
ZC_elem 14865904
ZM_hnf 6223
ZM_hnfall 74359
ZM_hnfcenter 475
ZM_hnflll 12381
ZM_hnfmod 168891
ZM_hnfmodall 1847017
ZM_hnfmodall_i 1849592
ZM_hnfmodid 1677946
ZM_hnfperm 100
ZM_reduce 860438
ZM_snf 160
ZM_snf_group 23095
ZM_snf_no_divide 97610
ZM_snfall 1040
ZM_snfall_i 26870
ZM_snfclean 23095
ZV_extgcd 0
ZV_gcdext_i 7835
ZV_hnfgcdext 7840
ZpM_echelon 33405
allhnfmod 70
bezout_step 52640
col_dup 290548
col_mul 189060
count 1932958
count2 49450
do_zero 0
findi 16883894
findi_normalize 16883894
gbezout_step 275
gsmith 35
gsmithall 0
gsmithall_i 35
gsnf_no_divide 100
hnf 0
hnf_divscale 18435
hnf_i 5040
hnf_invimage 63185
hnf_solve 15635
hnfadd 0
hnfadd_i 6748
hnfall 15
hnfallgen 5
hnfdivide 65
hnffinal 11397
hnflll 5
hnfmerge_get_1 128674
hnfmod 15
hnfmodid 55
hnfperm 15
hnfspec 95
hnfspec_i 4649
hnfswap 1187726
is_RgX 950
mathnf0 7915
mathnfspec 95
matsnf0 375
negcmpii 161780
p_mat 0
reduce1 177415
reduce2 8441857
remove_0cols 12802
reverse_rows 24762
smith 30
smithall 330
smithclean 490
snf_pile 26285
trivsmith 0
update 47265
zlm_echelon 129580

Generated by: LCOV version 1.9