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 16624-25b9976) Lines: 1338 1485 90.1 %
Date: 2014-06-24 Functions: 71 78 91.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1106 1385 79.9 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 788144
FpV_red_part_ipvec 13885150
Minus 214269
RgC_elem 5
RgM_hnfall 15
RgM_reduce 20
RgX_normalize_all 145
ZC_elem 21690866
ZM_hnf 6281
ZM_hnfall 74185
ZM_hnfcenter 475
ZM_hnflll 12683
ZM_hnfmod 205933
ZM_hnfmodall 2243002
ZM_hnfmodall_i 2245612
ZM_hnfmodid 2036889
ZM_hnfperm 100
ZM_reduce 869024
ZM_snf 160
ZM_snf_group 22820
ZM_snf_no_divide 96017
ZM_snfall 1045
ZM_snfall_i 26595
ZM_snfclean 22820
ZV_gcdext 0
ZV_gcdext_i 7834
ZV_hnfgcdext 7839
ZpM_echelon 33484
allhnfmod 70
bezout_step 51673
col_dup 294946
col_mul 185332
count 2016428
count2 52337
do_zero 0
findi 23970631
findi_normalize 23970631
gbezout_step 275
gsmith 35
gsmithall 0
gsmithall_i 35
gsnf_no_divide 100
hnf 0
hnf_divscale 18426
hnf_i 5021
hnf_invimage 62100
hnf_solve 15190
hnfadd 0
hnfadd_i 6972
hnfall 15
hnfallgen 5
hnfdivide 65
hnffinal 11665
hnflll 5
hnfmerge_get_1 164562
hnfmod 15
hnfmodid 55
hnfperm 15
hnfspec 95
hnfspec_i 4693
hnfswap 1247996
is_RgX 950
mathnf0 7914
mathnfspec 95
matsnf0 375
negcmpii 158874
p_mat 0
reduce1 177087
reduce2 11985223
remove_0cols 12745
reverse_rows 25366
smith 30
smithall 330
smithclean 490
snf_pile 26010
trivsmith 0
update 46333
zlm_echelon 129674

Generated by: LCOV version 1.9