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 16624-25b9976) Lines: 393 470 83.6 %
Date: 2014-06-24 Functions: 35 44 79.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 311 415 74.9 %

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 52105
apply0 130
check_callgen1 165
diagonal 211
diagonal_shallow 11580
extract0 510
extract_copy 30
extract_selector_ok 25
genapply 130
genindexselect 35
genselect 30
get_range 80
gtomat 22129
gtrans 3030
matmuldiagonal 5
matmultodiagonal 5
matslice0 90
parapply 0
parapply_worker 0
parselect 0
row_transpose 2155762
row_transposecopy 11488
rowslice_i 10
rowsmallslice_i 0
select0 35
select_0 55
shallowextract 1675
shallowtrans 433491
str_to_long 130
vecapply 450
vecapply1 570
vecapply2 10
veccatapply 0
veccatselapply 0
vecrange 280
vecrangess 0
vecselapply 125
vecselect 0
vecslice0 310
vecslice_i 520
vecslice_parse_arg 480
vecsmallslice_i 20
vecsum 20

Generated by: LCOV version 1.9