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 18946-c0ba5ba) Lines: 1381 1534 90.0 %
Date: 2016-05-26 Functions: 75 81 92.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1130 1425 79.3 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 1060255
FpV_red_part_ipvec 16837086
Minus 658425
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24067378
ZM_hnf 10151
ZM_hnfall 104669
ZM_hnfcenter 952
ZM_hnflll 56933
ZM_hnfmod 292611
ZM_hnfmodall 2865177
ZM_hnfmodall_i 2868999
ZM_hnfmodid 2569486
ZM_hnfperm 245
ZM_reduce 1232382
ZM_snf 217
ZM_snf_group 67365
ZM_snf_no_divide 151775
ZM_snfall 1713
ZM_snfall_i 72186
ZM_snfclean 68142
ZV_extgcd 14007
ZV_gcdext_i 14021
ZV_hnfgcdext 21
ZV_snf_group 490
ZV_snfall 777
ZpM_echelon 45387
allhnfmod 3059
bezout_step 86577
col_dup 777049
col_mul 268856
count 3036961
count2 119650
do_zero 0
findi 33521522
findi_normalize 33521522
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28817
hnf_i 8348
hnf_invimage 93758
hnf_solve 24458
hnfadd 0
hnfadd_i 16025
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 55325
hnflll 7
hnfmerge_get_1 185055
hnfmod 14
hnfmodid 3045
hnfperm 14
hnfspec 147
hnfspec_i 39300
hnfswap 2869132
is_RgX 931
mathnf0 140
mathnfspec 147
matsnf0 77
negcmpii 262823
p_mat 0
reduce1 260799
reduce2 16760604
remove_0cols 19326
reverse_rows 113866
smith 28
smithall 14
smithclean 238
snf_group 67855
snf_pile 64457
trivsmith 0
update 67214
zlm_echelon 186152

Generated by: LCOV version 1.9