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.10.0 lcov report (development 19832-7f23dbb) Lines: 1430 1583 90.3 %
Date: 2016-12-08 05:49:22 Functions: 80 86 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 423020
FpV_red_part_ipvec 16634320
Minus 723550
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24735480
ZM_hnf 8931
ZM_hnf_knapsack 147
ZM_hnfall 3138
ZM_hnfall_i 96897
ZM_hnfcenter 1036
ZM_hnflll 62783
ZM_hnfmod 69265
ZM_hnfmodall 2770336
ZM_hnfmodall_i 2774585
ZM_hnfmodid 2587914
ZM_hnfperm 231
ZM_reduce 1247081
ZM_rowrankprofile 60784
ZM_snf 217
ZM_snf_group 61998
ZM_snf_no_divide 130497
ZM_snfall 2102
ZM_snfall_i 67754
ZM_snfclean 67297
ZV_extgcd 14182
ZV_gcdext_i 14196
ZV_hnfgcdext 21
ZV_snf_group 5299
ZV_snf_trunc 224
ZV_snfall 5299
ZpM_echelon 46557
allhnfmod 112863
bezout_step 63017
col_dup 826648
col_mul 170164
count 3186411
count2 124612
do_zero 0
findi 38867919
findi_normalize 38867919
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 158985
hnf_i 6416
hnf_invimage 19054
hnf_invscale 12887
hnf_solve 12852
hnfadd 0
hnfadd_i 17598
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 61015
hnflll 7
hnfmerge_get_1 155316
hnfmod 14
hnfmodid 112849
hnfperm 14
hnfspec 322
hnfspec_i 43417
hnfswap 3111943
is_RgX 931
mathnf0 140
mathnfspec 322
matsnf0 378
negcmpii 241055
p_mat 0
reduce1 263109
reduce2 19433753
remove_0cols 17741
reverse_rows 125566
smith 322
smithall 21
smithclean 539
snf_group 67297
snf_pile 64491
trivsmith 0
update 42541
zlm_echelon 711430

Generated by: LCOV version 1.11