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

Generated by: LCOV version 1.9