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 19834-0e97742) Lines: 1430 1583 90.3 %
Date: 2016-12-09 05:49:11 Functions: 80 86 93.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.11