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.1 lcov report (development 22726-9e20c6a88) Lines: 466 509 91.6 %
Date: 2018-06-23 05:36:28 Functions: 43 49 87.8 %
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 2
parselect 4
mapapply1 7
matmultodiagonal 7
gen_parapply 8
rowslice_i 14
vecapply2 14
fold0 28
genfold 28
vecsmallslice_i 28
extract_selector_ok 35
matmuldiagonal 70
extract_copy 72
genselect 77
genindexselect 84
select0 91
select_0 105
get_range 112
matslice0 182
str_to_long 182
vecselapply 273
diagonal 602
parselect_worker 3989
vecslice0 4761
vecslice_parse_arg 5111
vecslice_i 5587
apply0 8778
genapply 8778
check_callgen1 8875
shallowmatextract 8932
vecrange 9985
row_transposecopy 18592
extract0 28035
shallowextract 34678
diagonal_shallow 37359
gtrans 39872
gtomat 77390
vecapply 114772
vecapply1 123564
vecsum 132113
RgM_diagonal_shallow 170501
shallowtrans 2462828
row_transpose 8759395

Generated by: LCOV version 1.13