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 16912-212c0f0) Lines: 1338 1485 90.1 %
Date: 2014-10-20 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 20714496
FpV_red_part_ipvec 14896362
reduce2 11761496
count 2703998
ZM_hnfmodall_i 2567014
ZM_hnfmodall 2563563
ZM_hnfmodid 2331885
hnfswap 1655329
ZM_reduce 1202872
FpV_Fp_mul_part_ip 917927
col_dup 405027
Minus 290843
col_mul 262752
reduce1 248353
ZM_hnfmod 231440
negcmpii 224994
zlm_echelon 182331
hnfmerge_get_1 178795
ZM_snf_no_divide 135556
ZM_hnfall 103725
hnf_invimage 88116
bezout_step 73115
count2 69021
update 65688
ZpM_echelon 44565
ZM_snfall_i 36596
snf_pile 35791
reverse_rows 33634
ZM_snf_group 31570
ZM_snfclean 31570
hnf_divscale 25508
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