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 18898-50fc0a2) Lines: 1381 1534 90.0 %
Date: 2016-05-04 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 33520962
findi_normalize 33520962
ZC_elem 24056274
FpV_red_part_ipvec 16826754
reduce2 16760324
count 3036933
hnfswap 2869062
ZM_hnfmodall_i 2867571
ZM_hnfmodall 2863749
ZM_hnfmodid 2568016
ZM_reduce 1232249
FpV_Fp_mul_part_ip 1061935
col_dup 777000
Minus 658404
ZM_hnfmod 292653
col_mul 268856
negcmpii 262823
reduce1 260799
zlm_echelon 186152
hnfmerge_get_1 184866
ZM_snf_no_divide 151775
count2 119643
reverse_rows 113838
ZM_hnfall 104669
hnf_invimage 93758
bezout_step 86577
ZM_snfall_i 72179
ZM_snfclean 68142
snf_group 67855
ZM_snf_group 67365
update 67214
snf_pile 64457
ZM_hnflll 56919
hnffinal 55318
ZpM_echelon 45387
hnfspec_i 39293
hnf_divscale 28642
hnf_solve 24458
remove_0cols 19291
hnfadd_i 16025
ZV_gcdext_i 14021
ZV_extgcd 14007
ZM_hnf 10116
hnf_i 8313
allhnfmod 3059
hnfmodid 3045
ZM_snfall 1706
ZM_hnfcenter 959
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 126
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