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 16375-9f41ae0) Lines: 1405 1549 90.7 %
Date: 2014-04-19 Functions: 77 83 92.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1155 1433 80.6 %

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 1098327
FpV_red_part_ipvec 19541866
Frobeniusform 231
Minus 297631
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize 1918
ZC_elem 30359952
ZM_hnf 8952
ZM_hnfall 20637
ZM_hnfcenter 665
ZM_hnflll 17373
ZM_hnfmod 290429
ZM_hnfmodall 3159872
ZM_hnfmodall_i 3163526
ZM_hnfmodid 2869191
ZM_hnfperm 140
ZM_reduce 478491
ZM_snf 224
ZM_snf_group 31874
ZM_snf_no_divide 134472
ZM_snfall 1358
ZM_snfall_i 37054
ZM_snfclean 31874
ZV_gcdext 0
ZV_gcdext_i 14
ZV_hnfgcdext 21
ZpM_echelon 45134
allhnfmod 98
bezout_step 72413
build_basischange 231
build_frobeniusbc 231
col_dup 412271
col_mul 290788
count 2813718
count2 73250
do_zero 0
findi 30280727
findi_normalize 30280727
gbezout_step 8547
gsmith 91
gsmithall 231
gsmithall_i 322
gsnf_no_divide 1582
hnf 0
hnf_divscale 25748
hnf_i 7093
hnf_invimage 87091
hnf_solve 21209
hnfadd 0
hnfadd_i 9576
hnfall 21
hnfallgen 7
hnfdivide 91
hnffinal 16044
hnflll 7
hnfmerge_get_1 231946
hnfmod 21
hnfmodid 77
hnfperm 21
hnfspec 133
hnfspec_i 6468
hnfswap 1716502
is_RgX 34524
matfrobenius 273
mathnf0 126
mathnfspec 133
matsnf0 798
negcmpii 222615
p_mat 0
prod_degree 273
reduce1 364
reduce2 15140241
remove_0cols 17900
reverse_rows 34746
smith 42
smithall 462
smithclean 959
snf_pile 36326
trivsmith 0
update 72697
zlm_echelon 183610

Generated by: LCOV version 1.9