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-bordeaux.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.10.0 lcov report (development 20924-e159ed0) Lines: 1490 1637 91.0 %
Date: 2017-08-21 06:23:16 Functions: 84 89 94.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpM_echelon 1397214
FpM_hnfend 1385214
FpV_Fp_mul_part_ip 2599474
FpV_red_part_ipvec 9962296
Minus 626414
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 27509913
ZM_hnf 41326
ZM_hnf_knapsack 154
ZM_hnfall 52242
ZM_hnfall_i 165006
ZM_hnfcenter 1197
ZM_hnflll 58336
ZM_hnfmod 111853
ZM_hnfmodall 1967744
ZM_hnfmodall_i 1972056
ZM_hnfmodid 1724500
ZM_hnfmodprime 1397214
ZM_hnfperm 238
ZM_reduce 20969231
ZM_rowrankprofile 41742
ZM_snf 217
ZM_snf_group 64021
ZM_snf_no_divide 156870
ZM_snfall 8374
ZM_snfall_i 76084
ZM_snfclean 128484
ZV_extgcd 50918
ZV_gcdext_i 50932
ZV_hnfgcdext 21
ZV_snf_group 64463
ZV_snf_trunc 224
ZV_snfall 64463
ZpM_echelon 46907
allhnfmod 130726
bezout_step 77303
col_dup 637961
col_mul 237000
count 3093865
count2 103842
do_zero 0
findi 36830533
findi_normalize 36830533
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 7042
hnf_divscale 181341
hnf_i 17791
hnf_invimage 86961
hnf_invscale 20797
hnf_solve 80626
hnfadd 0
hnfadd_i 17238
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 42099
hnflll 7
hnfmerge_get_1 123473
hnfmod 14
hnfmodid 130712
hnfperm 14
hnfspec 322
hnfspec_i 24861
hnfswap 3309145
is_RgX 931
mathnf0 7182
mathnfspec 322
matsnf0 378
negcmpii 362152
p_mat 0
reduce1 368151
reduce2 18414812
remove_0cols 109811
reverse_rows 116672
smith 322
smithall 21
smithclean 539
snf_group 128484
snf_pile 136927
trivsmith 0
update 59250
zlm_echelon 773365

Generated by: LCOV version 1.11