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 16937-4bd9b4e) Lines: 394 470 83.8 %
Date: 2014-10-24 Functions: 35 44 79.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 313 417 75.1 %

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 71729
apply0 182
check_callgen1 231
diagonal 280
diagonal_shallow 15813
extract0 700
extract_copy 42
extract_selector_ok 35
genapply 182
genindexselect 49
genselect 42
get_range 112
gtomat 30331
gtrans 4214
matmuldiagonal 7
matmultodiagonal 7
matslice0 119
parapply 0
parapply_worker 0
parselect 0
row_transpose 2408782
row_transposecopy 16205
rowslice_i 14
rowsmallslice_i 0
select0 49
select_0 70
shallowextract 2429
shallowtrans 531757
str_to_long 182
vecapply 630
vecapply1 798
vecapply2 14
veccatapply 0
veccatselapply 0
vecrange 434
vecrangess 0
vecselapply 210
vecselect 0
vecslice0 434
vecslice_i 707
vecslice_parse_arg 658
vecsmallslice_i 28
vecsum 28

Generated by: LCOV version 1.9