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

Generated by: LCOV version 1.11