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 19207-2ed2f69) Lines: 1386 1537 90.2 %
Date: 2016-07-25 07:10:32 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 1720
hnfmodid 3045
allhnfmod 3059
hnf_i 8355
ZM_hnf 10158
ZV_extgcd 14007
ZV_gcdext_i 14021
hnfadd_i 16335
remove_0cols 19340
hnf_solve 24458
hnf_divscale 28929
hnfspec_i 43026
ZpM_echelon 45364
hnffinal 59361
ZM_hnflll 60976
update 67214
snf_pile 68267
ZM_snf_group 71084
snf_group 71637
ZM_snfclean 71924
ZM_snfall_i 75926
bezout_step 86997
hnf_invimage 93758
ZM_hnfall 104669
reverse_rows 121952
count2 122412
ZM_snf_no_divide 152231
zlm_echelon 186049
reduce1 260799
negcmpii 266690
col_mul 268856
hnfmerge_get_1 278904
ZM_hnfmod 296701
Minus 712028
col_dup 816375
FpV_Fp_mul_part_ip 1065289
ZM_reduce 1230961
ZM_hnfmodid 2917050
hnfswap 3018398
count 3053992
ZM_hnfmodall 3216831
ZM_hnfmodall_i 3220646
reduce2 17230077
FpV_red_part_ipvec 18229722
ZC_elem 25658043
findi 34460468
findi_normalize 34460468

Generated by: LCOV version 1.11