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 21188-db834f2) Lines: 1493 1639 91.1 %
Date: 2017-10-20 06:23:07 Functions: 84 89 94.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpM_echelon 1392874
FpM_hnfend 1380873
FpV_Fp_mul_part_ip 2582075
FpV_red_part_ipvec 9547982
Minus 507274
RgC_elem 7
RgM_hnfall 35
RgM_reduce 42
ZC_elem 19922392
ZM_hnf 19833
ZM_hnf_knapsack 154
ZM_hnfall 2826
ZM_hnfall_i 159340
ZM_hnfcenter 1218
ZM_hnflll 50935
ZM_hnfmod 111860
ZM_hnfmodall 1983124
ZM_hnfmodall_i 1987450
ZM_hnfmodid 1666055
ZM_hnfmodprime 1392874
ZM_hnfperm 238
ZM_reduce 2005016
ZM_rowrankprofile 41669
ZM_snf 217
ZM_snf_group 64021
ZM_snf_no_divide 156856
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 204537
bezout_step 77289
col_dup 637517
col_mul 237000
count 3098405
count2 103836
do_zero 0
findi 35082971
findi_normalize 35082971
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 14
hnf_divscale 181499
hnf_i 17644
hnf_invimage 113211
hnf_invscale 20797
hnf_solve 106876
hnfadd 0
hnfadd_i 17171
hnfall 14
hnfallgen 14
hnfdivide 91
hnffinal 42026
hnflll 7
hnfmerge_get_1 123480
hnfmod 14
hnfmodid 204523
hnfperm 14
hnfspec 322
hnfspec_i 24855
hnfswap 2435939
is_RgX 1001
mathnf0 168
mathnfspec 322
matsnf0 378
negcmpii 362138
normalize_as_RgX 210
p_mat 0
reduce1 368158
reduce2 17541031
remove_0cols 96684
reverse_rows 101870
smith 322
smithall 21
smithclean 539
snf_group 128484
snf_pile 136927
trivsmith 0
update 59250
zlm_echelon 771557

Generated by: LCOV version 1.11