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 22303-eb3e11d) Lines: 466 509 91.6 %
Date: 2018-04-21 06:16: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
RgM_diagonal_shallow 169940
apply0 8764
check_callgen1 8873
diagonal 553
diagonal_shallow 37352
extract0 15421
extract_copy 76
extract_selector_ok 35
fold0 28
gen_parapply 24
genapply 8764
genfold 28
genindexselect 84
genselect 77
get_range 112
gtomat 71881
gtrans 39725
mapapply1 7
matmuldiagonal 70
matmultodiagonal 7
matslice0 182
parapply 6
parselect 12
parselect_worker 11988
row_transpose 6264643
row_transposecopy 18466
rowslice_i 14
rowsmallslice_i 0
select0 91
select_0 70
shallowextract 22029
shallowmatextract 8869
shallowtrans 1246643
str_to_long 182
vecapply 114716
vecapply1 123494
vecapply2 14
veccatapply 0
veccatselapply 0
vecrange 9935
vecrangess 0
vecselapply 273
vecselect 0
vecslice0 4733
vecslice_i 5559
vecslice_parse_arg 5083
vecsmallslice_i 28
vecsum 113073

Generated by: LCOV version 1.11