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-bordeaux1.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 16962-5a32637) Lines: 1338 1485 90.1 %
Date: 2014-10-29 Functions: 71 78 91.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1105 1385 79.8 %

Function Name Sort by function name Hit count Sort by hit count
findi 23523209
findi_normalize 23523209
ZC_elem 20729146
FpV_red_part_ipvec 14911250
reduce2 11761496
count 2703998
ZM_hnfmodall_i 2573995
ZM_hnfmodall 2570544
ZM_hnfmodid 2335619
hnfswap 1655329
ZM_reduce 1202846
FpV_Fp_mul_part_ip 924420
col_dup 405027
Minus 290843
col_mul 262752
reduce1 248353
ZM_hnfmod 234687
negcmpii 224987
zlm_echelon 182333
hnfmerge_get_1 178588
ZM_snf_no_divide 135555
ZM_hnfall 103718
hnf_invimage 88116
bezout_step 73115
count2 69021
update 65688
ZpM_echelon 44565
ZM_snfall_i 36589
snf_pile 35784
reverse_rows 33634
ZM_snf_group 31563
ZM_snfclean 31563
hnf_divscale 25501
hnf_solve 21707
remove_0cols 17595
ZM_hnflll 16817
hnffinal 15523
mathnf0 11081
ZV_hnfgcdext 10976
ZV_gcdext_i 10969
hnfadd_i 9119
ZM_hnf 8524
hnf_i 6916
hnfspec_i 6404
ZM_snfall 1379
is_RgX 931
ZM_hnfcenter 616
smithclean 525
matsnf0 364
smithall 301
gbezout_step 266
ZM_snf 217
RgX_normalize_all 168
mathnfspec 133
hnfspec 133
ZM_hnfperm 126
gsnf_no_divide 112
allhnfmod 84
hnfmodid 70
hnfdivide 56
gsmithall_i 42
gsmith 42
RgM_reduce 28
smith 28
RgM_hnfall 21
hnfall 14
hnfmod 14
hnfperm 14
hnfallgen 7
RgC_elem 7
hnflll 7
hnf 0
p_mat 0
hnfadd 0
ZV_extgcd 0
gsmithall 0
do_zero 0
trivsmith 0

Generated by: LCOV version 1.9