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 - alglin3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 459 513 89.5 %
Date: 2017-04-27 05:33:52 Functions: 41 48 85.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 129097
apply0 7176
check_callgen1 7260
diagonal 450
diagonal_shallow 13104
extract0 600
extract_copy 62
extract_selector_ok 30
fold0 24
genapply 7176
genfold 24
genindexselect 72
genselect 66
get_range 96
gtomat 42030
gtrans 4236
mapapply1 6
matmuldiagonal 6
matmultodiagonal 6
matslice0 126
parapply 2
parapply_worker 3985
parselect 4
row_transpose 4443310
row_transposecopy 15012
rowslice_i 12
rowsmallslice_i 0
select0 78
select_0 60
shallowextract 2790
shallowmatextract 0
shallowtrans 864157
str_to_long 156
vecapply 90660
vecapply1 97848
vecapply2 12
veccatapply 0
veccatselapply 0
vecrange 946
vecrangess 0
vecselapply 216
vecselect 0
vecslice0 2874
vecslice_i 3270
vecslice_parse_arg 3114
vecsmallslice_i 24
vecsum 65094

Generated by: LCOV version 1.11