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 20277-2bd9113) Lines: 458 512 89.5 %
Date: 2017-02-19 05:49:50 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 151278
apply0 1246
check_callgen1 5844
diagonal 525
diagonal_shallow 15288
extract0 700
extract_copy 4573
extract_selector_ok 35
fold0 28
genapply 1246
genfold 28
genindexselect 4585
genselect 4578
get_range 112
gtomat 36660
gtrans 4928
mapapply1 7
matmuldiagonal 7
matmultodiagonal 7
matslice0 126
parapply 2
parapply_worker 3981
parselect 4
row_transpose 5176786
row_transposecopy 17206
rowslice_i 14
rowsmallslice_i 0
select0 4592
select_0 70
shallowextract 3255
shallowmatextract 0
shallowtrans 1020537
str_to_long 182
vecapply 105770
vecapply1 107030
vecapply2 14
veccatapply 0
veccatselapply 0
vecrange 1102
vecrangess 0
vecselapply 252
vecselect 0
vecslice0 3375
vecslice_i 3669
vecslice_parse_arg 3613
vecsmallslice_i 28
vecsum 75764

Generated by: LCOV version 1.11