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 16937-4bd9b4e) Lines: 1338 1485 90.1 %
Date: 2014-10-24 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 917927
FpV_red_part_ipvec 14896362
Minus 290843
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 20714496
ZM_hnf 8524
ZM_hnfall 103725
ZM_hnfcenter 616
ZM_hnflll 16817
ZM_hnfmod 231440
ZM_hnfmodall 2563563
ZM_hnfmodall_i 2567014
ZM_hnfmodid 2331885
ZM_hnfperm 126
ZM_reduce 1202872
ZM_snf 217
ZM_snf_group 31570
ZM_snf_no_divide 135556
ZM_snfall 1379
ZM_snfall_i 36596
ZM_snfclean 31570
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 25508
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 178795
hnfmod 14
hnfmodid 70
hnfperm 14
hnfspec 133
hnfspec_i 6404
hnfswap 1655329
is_RgX 931
mathnf0 11081
mathnfspec 133
matsnf0 364
negcmpii 224994
p_mat 0
reduce1 248353
reduce2 11761496
remove_0cols 17595
reverse_rows 33634
smith 28
smithall 301
smithclean 525
snf_pile 35791
trivsmith 0
update 65688
zlm_echelon 182331

Generated by: LCOV version 1.9