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.0 lcov report (development 23509-020931de0) Lines: 480 521 92.1 %
Date: 2019-01-23 05:41:35 Functions: 44 50 88.0 %
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
parapply 4
mapapply1 7
matmultodiagonal 7
parselect 8
gen_parapply 14
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
zv_diagonal 182
vecselapply 343
diagonal 700
vecslice0 4670
vecslice_parse_arg 5013
vecslice_i 5496
parselect_worker 7977
apply0 8785
genapply 8785
check_callgen1 8892
shallowmatextract 9394
vecrange 10002
row_transposecopy 18592
extract0 28035
shallowextract 34678
gtrans 39872
diagonal_shallow 57701
gtomat 80092
vecapply 114772
vecapply1 123571
vecsum 132995
RgM_diagonal_shallow 230484
shallowtrans 2569745
row_transpose 8988102

Generated by: LCOV version 1.13