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 18886-5652b70) Lines: 1381 1534 90.0 %
Date: 2016-04-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
FpV_Fp_mul_part_ip 1061935
FpV_red_part_ipvec 16826754
Minus 658406
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 24056274
ZM_hnf 10116
ZM_hnfall 104669
ZM_hnfcenter 959
ZM_hnflll 56919
ZM_hnfmod 292653
ZM_hnfmodall 2863749
ZM_hnfmodall_i 2867571
ZM_hnfmodid 2568016
ZM_hnfperm 245
ZM_reduce 1232249
ZM_snf 217
ZM_snf_group 67365
ZM_snf_no_divide 151775
ZM_snfall 1706
ZM_snfall_i 72179
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 777000
col_mul 268856
count 3036933
count2 119643
do_zero 0
findi 33520948
findi_normalize 33520948
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 28642
hnf_i 8313
hnf_invimage 93758
hnf_solve 24458
hnfadd 0
hnfadd_i 16025
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 55318
hnflll 7
hnfmerge_get_1 184866
hnfmod 14
hnfmodid 3045
hnfperm 14
hnfspec 147
hnfspec_i 39293
hnfswap 2869063
is_RgX 931
mathnf0 126
mathnfspec 147
matsnf0 77
negcmpii 262823
p_mat 0
reduce1 260799
reduce2 16760317
remove_0cols 19291
reverse_rows 113838
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