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 21350-3349c1d) Lines: 466 509 91.6 %
Date: 2017-11-21 06:21:18 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 6
mapapply1 7
matmultodiagonal 7
parselect 12
rowslice_i 14
vecapply2 14
gen_parapply 24
fold0 28
genfold 28
vecsmallslice_i 28
extract_selector_ok 35
extract_copy 76
genselect 77
select_0 77
genindexselect 84
select0 91
get_range 112
matslice0 182
str_to_long 182
matmuldiagonal 196
vecselapply 259
diagonal 553
shallowmatextract 2842
vecslice0 4215
vecslice_parse_arg 4565
vecslice_i 5041
apply0 8729
genapply 8729
check_callgen1 8838
vecrange 9900
parselect_worker 11990
gtrans 13741
extract0 15379
shallowextract 18081
row_transposecopy 18179
diagonal_shallow 37303
gtomat 55625
vecsum 95225
vecapply 114513
vecapply1 123256
RgM_diagonal_shallow 168668
shallowtrans 1210196
row_transpose 5730425

Generated by: LCOV version 1.11