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 22303-eb3e11d) Lines: 1520 1670 91.0 %
Date: 2018-04-21 06:16:28 Functions: 86 91 94.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
do_zero 0
gsmithall 0
hnfadd 0
p_mat 0
trivsmith 0
RgC_elem 7
hnflll 7
hnf 14
hnfall 14
hnfallgen 14
hnfmod 14
hnfperm 14
ZV_hnfgcdext 21
smithall 21
RgM_hnfall 35
RgM_reduce 42
gsmith 42
gsmithall_i 42
hnfdivide 91
gsnf_no_divide 112
ZM_hnf_knapsack 175
mathnf0 210
normalize_as_RgX 210
ZV_snf_trunc 224
ZM_hnfperm 259
gbezout_step 266
ZM_snf 301
hnfspec 322
mathnfspec 322
smith 322
matsnf0 378
smithclean 539
is_RgX 1001
ZM_hnfcenter 1589
ZM_hnfall 3218
ZM_snfall 8215
ZV_allequal 14651
hnfadd_i 17583
hnf_i 17714
ZM_hnf 20323
hnf_invscale 20790
hnfspec_i 25059
ZM_rowrankprofile 42285
hnffinal 42642
ZpM_echelon 48134
ZV_extgcd 50918
ZV_gcdext_i 50932
ZM_hnflll 51454
remove_0cols 53334
update 59132
ZV_snf_group 61929
ZV_snfall 61929
hnf_solve 63112
ZM_snf_group 64189
hnf_invimage 69447
ZM_snfall_i 76177
bezout_step 77173
reverse_rows 102908
count2 104125
ZM_hnfmod 112030
ZM_hnfall_i 116017
hnfmerge_get_1 123634
ZM_snfclean 126118
snf_group 126118
snf_pile 134465
ZM_snf_no_divide 156806
hnf_divscale 179755
col_mul 236528
hnfmodid 246978
allhnfmod 246992
negcmpii 361286
reduce1 368165
Minus 503554
col_dup 638262
zlm_echelon 774913
FpM_echelon 910254
FpM_hnfend 910254
ZM_hnfmodprime 910254
ZM_reduce 1365383
ZM_hnfmodid 1668754
FpV_Fp_mul_part_ip 1991288
ZM_hnfmodall 2028462
optimal_D 2032823
ZM_hnfmodall_i 2032886
hnfswap 2446568
count 3117064
FpV_red_part_ipvec 15732724
reduce2 17442135
ZC_elem 18726224
findi 34885179
findi_normalize 34885179

Generated by: LCOV version 1.11