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-bordeaux1.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.8.0 lcov report (development 17842-03c132c) Lines: 456 497 91.8 %
Date: 2015-05-23 Functions: 41 47 87.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 349 434 80.4 %

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 76004
apply0 336
check_callgen1 391
diagonal 329
diagonal_shallow 16352
extract0 700
extract_copy 44
extract_selector_ok 35
fold0 28
genapply 336
genfold 28
genindexselect 49
genselect 42
get_range 112
gtomat 34666
gtrans 4340
mapapply1 7
matmuldiagonal 7
matmultodiagonal 7
matslice0 126
parapply 2
parapply_worker 3986
parselect 4
row_transpose 2596839
row_transposecopy 16205
rowslice_i 14
rowsmallslice_i 0
select0 49
select_0 70
shallowextract 2450
shallowtrans 560820
str_to_long 182
vecapply 1253
vecapply1 1589
vecapply2 14
veccatapply 0
veccatselapply 0
vecrange 836
vecrangess 0
vecselapply 259
vecselect 0
vecslice0 889
vecslice_i 1183
vecslice_parse_arg 1127
vecsmallslice_i 28
vecsum 1713

Generated by: LCOV version 1.9