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.12.1 lcov report (development 24495-f03dc99ac) Lines: 501 542 92.4 %
Date: 2019-10-22 05:49:16 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
parselect 8
rowslice_i 14
vecapply2 14
fold0 28
genfold 28
vecsmallslice_i 28
extract_selector_ok 35
matmuldiagonal 70
extract_copy 76
genselect 79
genindexselect 88
select0 95
select_0 105
get_range 112
matslice0 182
str_to_long 182
parapply 204
gen_parapply 214
parapply_slice_worker 285
vecselapply 343
zv_diagonal 392
diagonal 1211
vecslice0 4677
vecslice_parse_arg 5020
vecslice_i 5503
gen_parapply_slice 6484
parselect_worker 7955
apply0 8785
genapply 8785
check_callgen1 9092
shallowmatextract 9779
vecrange 10002
row_transposecopy 18599
extract0 28056
shallowextract 36176
gtrans 39872
diagonal_shallow 59032
arithprogset 69494
gtomat 89191
vecapply 114779
vecapply1 123578
RgM_diagonal_shallow 134833
vecsum 137921
shallowtrans 2813017
row_transpose 9908025

Generated by: LCOV version 1.13