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 20095-ff095b1) Lines: 1431 1581 90.5 %
Date: 2017-01-21 05:50:01 Functions: 81 86 94.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_Fp_mul_part_ip 423518
FpV_red_part_ipvec 16948744
Minus 723963
RgC_elem 7
RgM_hnfall 21
RgM_reduce 28
RgX_normalize_all 168
ZC_elem 25101419
ZM_hnf 8938
ZM_hnf_knapsack 147
ZM_hnfall 3152
ZM_hnfall_i 97093
ZM_hnfcenter 1043
ZM_hnflll 63770
ZM_hnfmod 69545
ZM_hnfmodall 2809178
ZM_hnfmodall_i 2813427
ZM_hnfmodid 2626756
ZM_hnfperm 231
ZM_reduce 1249048
ZM_rowrankprofile 60791
ZM_snf 217
ZM_snf_group 62208
ZM_snf_no_divide 130616
ZM_snfall 2109
ZM_snfall_i 67999
ZM_snfclean 67598
ZV_extgcd 14245
ZV_gcdext_i 14259
ZV_hnfgcdext 21
ZV_snf_group 5390
ZV_snf_trunc 224
ZV_snfall 5390
ZpM_echelon 46561
allhnfmod 112576
bezout_step 63094
col_dup 826711
col_mul 170472
count 3186439
count2 124619
do_zero 0
findi 38917815
findi_normalize 38917815
gbezout_step 266
gsmith 42
gsmithall 0
gsmithall_i 42
gsnf_no_divide 112
hnf 14
hnf_divscale 158152
hnf_i 6423
hnf_invimage 19159
hnf_invscale 12971
hnf_solve 12957
hnfadd 0
hnfadd_i 17598
hnfall 14
hnfallgen 7
hnfdivide 91
hnffinal 61022
hnflll 7
hnfmerge_get_1 155351
hnfmod 14
hnfmodid 112562
hnfperm 14
hnfspec 322
hnfspec_i 43424
hnfswap 3113686
is_RgX 931
mathnf0 154
mathnfspec 322
matsnf0 378
negcmpii 241391
p_mat 0
reduce1 263207
reduce2 19458701
remove_0cols 18882
reverse_rows 127540
smith 322
smithall 21
smithclean 539
snf_group 67598
snf_pile 64820
trivsmith 0
update 42618
zlm_echelon 722465

Generated by: LCOV version 1.11