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 19053-42ab05e) Lines: 1381 1534 90.0 %
Date: 2016-06-29 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
findi 33523090
findi_normalize 33523090
ZC_elem 24065365
FpV_red_part_ipvec 16855734
reduce2 16761388
count 3036989
ZM_hnfmodall_i 2874018
ZM_hnfmodall 2870196
hnfswap 2869258
ZM_hnfmodid 2574365
ZM_reduce 1232389
FpV_Fp_mul_part_ip 1060815
col_dup 777119
Minus 658453
ZM_hnfmod 292751
col_mul 268856
negcmpii 262823
reduce1 260799
zlm_echelon 186173
hnfmerge_get_1 185083
ZM_snf_no_divide 151775
count2 119657
reverse_rows 113894
ZM_hnfall 104669
hnf_invimage 93758
bezout_step 86577
ZM_snfall_i 72193
ZM_snfclean 68142
snf_group 67855
ZM_snf_group 67365
update 67214
snf_pile 64457
ZM_hnflll 56947
hnffinal 55332
ZpM_echelon 45401
hnfspec_i 39307
hnf_divscale 28901
hnf_solve 24458
remove_0cols 19340
hnfadd_i 16025
ZV_gcdext_i 14021
ZV_extgcd 14007
ZM_hnf 10158
hnf_i 8355
allhnfmod 3059
hnfmodid 3045
ZM_snfall 1720
ZM_hnfcenter 952
is_RgX 931
ZV_snfall 777
ZV_snf_group 490
gbezout_step 266
ZM_hnfperm 245
smithclean 238
ZM_snf 217
RgX_normalize_all 168
mathnfspec 147
hnfspec 147
mathnf0 140
gsnf_no_divide 112
hnfdivide 91
matsnf0 77
gsmithall_i 42
gsmith 42
RgM_reduce 28
smith 28
ZV_hnfgcdext 21
RgM_hnfall 21
hnfall 14
hnfmod 14
hnfperm 14
smithall 14
hnfallgen 7
RgC_elem 7
hnflll 7
hnf 0
p_mat 0
hnfadd 0
gsmithall 0
do_zero 0
trivsmith 0

Generated by: LCOV version 1.9