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 - alglin3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 550 595 92.4 %
Date: 2024-11-15 09:08:45 Functions: 47 53 88.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
rowsmallslice_i 0
veccatapply 0
veccatselapply 0
vecrangess 0
vecselect 0
matmultodiagonal 7
rowslice_i 14
vecapply2 14
mapapply1 21
fold0 28
genfold 28
vecsmallslice_i 28
parselect 30
extract_selector_ok 35
parapply_slice_worker 43
matmuldiagonal 70
select_0 84
extract_copy 101
genselect 104
genindexselect 110
get_range 112
select0 131
str_to_long 182
matslice0 210
vecselapply 448
zv_diagonal 448
vecslice0 1652
parapply 1744
vecslice_parse_arg 2051
vecslice_i 2688
gen_parapply_slice 7343
vecrange 10765
shallowmatextract 13062
row_transposecopy 18728
extract0 36272
gtrans 43673
shallowextract 49041
apply0 52861
genapply 52861
check_callgen1 54766
arithprogset 74491
vecapply 132269
vecsum 147186
vecapply1 185130
diagonal_shallow 350710
gtomat 368632
gen_parapply 372098
gen_parapply_percent 375003
RgM_diagonal_shallow 886540
diagonal 1336448
shallowtrans 6883152
row_transpose 25683410

Generated by: LCOV version 1.16