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 19608-b7b365e) Lines: 1416 1567 90.4 %
Date: 2016-09-26 05:54:43 Functions: 79 85 92.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 460345
FpV_red_part_ipvec 22703994
Minus 722859
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 32853815
ZM_hnf 11170
ZM_hnf_knapsack 175
ZM_hnfall 3053
ZM_hnfall_i 106479
ZM_hnfcenter 1001
ZM_hnflll 62561
ZM_hnfmod 80143
ZM_hnfmodall 3717641
ZM_hnfmodall_i 3721645
ZM_hnfmodid 3532382
ZM_hnfperm 259
ZM_reduce 1314278
ZM_rowrankprofile 60631
ZM_snf 217
ZM_snf_group 72834
ZM_snf_no_divide 158960
ZM_snfall 2032
ZM_snfall_i 78429
ZM_snfclean 73709
ZV_extgcd 14063
ZV_gcdext_i 14077
ZV_hnfgcdext 21
ZV_snf_group 588
ZV_snf_trunc 217
ZV_snfall 875
ZpM_echelon 45762
allhnfmod 104822
bezout_step 91185
col_dup 825644
col_mul 279672
count 3204736
count2 124387
do_zero 0
findi 38915080
findi_normalize 38915080
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 155834
hnf_i 8712
hnf_invimage 98977
hnf_solve 25074
hnfadd 0
hnfadd_i 17507
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 60862
hnflll 7
hnfmerge_get_1 319722
hnfmod 14
hnfmodid 104808
hnfperm 14
hnfspec 315
hnfspec_i 43355
hnfswap 3110211
is_RgX 931
mathnf0 140
mathnfspec 315
matsnf0 364
negcmpii 277875
p_mat 0
reduce1 261135
reduce2 19457337
remove_0cols 20954
reverse_rows 125122
smith 308
smithall 21
smithclean 525
snf_group 73422
snf_pile 70756
trivsmith 0
update 69918
zlm_echelon 188923

Generated by: LCOV version 1.11