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 16393-29b9383) Lines: 385 470 81.9 %
Date: 2014-04-24 Functions: 35 44 79.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 296 415 71.3 %

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 52100
apply0 130
check_callgen1 165
diagonal 204
diagonal_shallow 17723
extract0 485
extract_copy 30
extract_selector_ok 20
genapply 130
genindexselect 35
genselect 30
get_range 75
gtomat 31396
gtrans 3010
matmuldiagonal 5
matmultodiagonal 5
matslice0 90
parapply 0
parapply_worker 0
parselect 0
row_transpose 2181317
row_transposecopy 11593
rowslice_i 10
rowsmallslice_i 0
select0 35
select_0 50
shallowextract 1650
shallowtrans 436681
str_to_long 120
vecapply 450
vecapply1 570
vecapply2 10
veccatapply 0
veccatselapply 0
vecrange 270
vecrangess 0
vecselapply 125
vecselect 0
vecslice0 295
vecslice_i 520
vecslice_parse_arg 465
vecsmallslice_i 20
vecsum 15

Generated by: LCOV version 1.9