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 19369-efd6c3d) Lines: 1386 1537 90.2 %
Date: 2016-08-29 06:11:50 Functions: 75 81 92.6 %
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
smith 28
gsmith 42
gsmithall_i 42
matsnf0 84
hnfdivide 91
gsnf_no_divide 112
mathnf0 140
hnfspec 147
mathnfspec 147
RgX_normalize_all 168
ZM_snf 217
smithclean 245
ZM_hnfperm 259
gbezout_step 266
ZV_snf_group 553
ZV_snfall 840
is_RgX 931
ZM_hnfcenter 959
ZM_snfall 1748
hnf_i 8523
ZM_hnf 10696
ZV_extgcd 14007
ZV_gcdext_i 14021
hnfadd_i 16731
remove_0cols 19892
hnf_solve 23870
hnfspec_i 43040
ZpM_echelon 45364
hnffinal 59771
ZM_hnflll 61400
update 67356
snf_pile 68288
ZM_snf_group 71084
snf_group 71637
ZM_snfclean 71924
ZM_snfall_i 75954
ZM_hnfmod 77346
bezout_step 87139
hnf_invimage 93359
hnfmodid 102959
allhnfmod 102973
ZM_hnfall 105039
count2 122650
reverse_rows 122800
ZM_snf_no_divide 152254
hnf_divscale 152539
zlm_echelon 186091
reduce1 260799
negcmpii 266699
col_mul 269424
hnfmerge_get_1 318560
FpV_Fp_mul_part_ip 449007
Minus 711987
col_dup 816998
ZM_reduce 1280457
hnfswap 3011338
count 3088782
ZM_hnfmodid 3503951
ZM_hnfmodall 3684557
ZM_hnfmodall_i 3688379
reduce2 15611687
FpV_red_part_ipvec 22212246
findi 31223695
findi_normalize 31223695
ZC_elem 31948343

Generated by: LCOV version 1.11