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 to exceed 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.12.0 lcov report (development 23008-54b2e2f01) Lines: 1515 1664 91.0 %
Date: 2018-09-20 05:37:46 Functions: 87 92 94.6 %
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
normalize_as_RgX 210
mathnf0 217
ZV_snf_trunc 224
ZM_hnfperm 259
gbezout_step 266
hnfspec 322
mathnfspec 322
smith 322
matsnf0 378
ZM_snf 427
smithclean 539
is_RgX 1001
ZM_hnfcenter 1687
ZM_hnfall 3584
ZM_snfall 8243
hnf_i 12450
ZV_allequal 14763
ZM_hnf 15453
hnfadd_i 19229
hnf_invscale 20839
hnfspec_i 24940
ZM_rowrankprofile 43812
hnffinal 44169
ZpM_echelon 48374
remove_0cols 48534
ZV_extgcd 50918
ZV_gcdext_i 50932
ZM_hnflll 53093
update 59251
ZV_snf_group 63364
ZV_snfall 63364
hnf_solve 64057
ZM_snf_group 64315
hnf_invimage 70518
ZM_snfall_i 76422
bezout_step 77360
reverse_rows 106186
ZM_hnfmod 112646
ZM_hnfall_i 116390
ZM_snfclean 127679
snf_group 127679
hnfmerge_get_1 132041
snf_pile 136131
count2 151450
hnf_divscale 156850
ZM_snf_no_divide 157006
col_mul 237004
hnfmodid 241124
allhnfmod 241138
negcmpii 363142
reduce1 368207
Minus 545132
col_dup 658450
zlm_echelon 797279
ZM_reduce 1351259
must_swap 1430226
FpM_echelon 1582029
FpM_hnfend 1582029
ZM_hnfmodprime 1582029
FpV_Fp_mul_part_ip 2666780
hnfswap 2898051
ZM_hnfmodid 2925446
ZM_hnfmodall 3280077
optimal_D 3284473
ZM_hnfmodall_i 3284536
count 3855511
reduce2 20575112
FpV_red_part_ipvec 21861082
ZC_elem 23614568
findi 41151133
findi_normalize 41151133

Generated by: LCOV version 1.13