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.16.2 lcov report (development 29115-f22e516b23) Lines: 537 582 92.3 %
Date: 2024-03-29 08:06:26 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
mapapply1 7
matmultodiagonal 7
rowslice_i 14
vecapply2 14
fold0 28
genfold 28
vecsmallslice_i 28
parselect 30
extract_selector_ok 35
parapply_slice_worker 42
matmuldiagonal 70
select_0 77
genselect 83
extract_copy 94
genindexselect 96
select0 103
get_range 112
str_to_long 182
matslice0 210
vecselapply 448
zv_diagonal 448
vecslice0 1617
parapply 1744
vecslice_parse_arg 2016
vecslice_i 2653
gen_parapply_slice 7307
shallowmatextract 10297
vecrange 10597
row_transposecopy 18616
extract0 28901
shallowextract 38891
gtrans 43603
apply0 52812
genapply 52812
check_callgen1 54689
arithprogset 73685
vecapply 115336
vecsum 151942
vecapply1 168162
diagonal_shallow 350404
gtomat 359536
gen_parapply 371253
gen_parapply_percent 374158
RgM_diagonal_shallow 876029
diagonal 1355391
shallowtrans 6831198
row_transpose 25579909

Generated by: LCOV version 1.14