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 17072-bc6ca01) Lines: 1338 1485 90.1 %
Date: 2014-11-17 Functions: 71 78 91.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1107 1385 79.9 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 929077
FpV_red_part_ipvec 15011966
Minus 295778
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 21056999
ZM_hnf 8587
ZM_hnfall 103788
ZM_hnfcenter 721
ZM_hnflll 17300
ZM_hnfmod 236038
ZM_hnfmodall 2581338
ZM_hnfmodall_i 2585020
ZM_hnfmodid 2345062
ZM_hnfperm 245
ZM_reduce 1202454
ZM_snf 217
ZM_snf_group 32137
ZM_snf_no_divide 135905
ZM_snfall 1428
ZM_snfall_i 37212
ZM_snfclean 32137
ZV_extgcd 0
ZV_gcdext_i 10969
ZV_hnfgcdext 10976
ZpM_echelon 45004
allhnfmod 84
bezout_step 73318
col_dup 409927
col_mul 263004
count 2706252
count2 69649
do_zero 0
findi 23564933
findi_normalize 23564933
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 0
hnf_divscale 25991
hnf_i 7021
hnf_invimage 88200
hnf_solve 21742
hnfadd 0
hnfadd_i 9077
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 15957
hnflll 7
hnfmerge_get_1 179337
hnfmod 14
hnfmodid 70
hnfperm 14
hnfspec 133
hnfspec_i 6880
hnfswap 1667845
is_RgX 931
mathnf0 11081
mathnfspec 133
matsnf0 364
negcmpii 225659
p_mat 0
reduce1 248353
reduce2 11782358
remove_0cols 17763
reverse_rows 34600
smith 28
smithall 301
smithclean 525
snf_pile 36365
trivsmith 0
update 65751
zlm_echelon 184904

Generated by: LCOV version 1.9