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 17110-9967e23) Lines: 394 470 83.8 %
Date: 2014-11-26 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 53500
apply0 200
check_callgen1 235
diagonal 200
diagonal_shallow 11450
extract0 500
extract_copy 30
extract_selector_ok 25
genapply 200
genindexselect 35
genselect 30
get_range 80
gtomat 22440
gtrans 3015
matmuldiagonal 5
matmultodiagonal 5
matslice0 90
parapply 0
parapply_worker 0
parselect 0
row_transpose 1843529
row_transposecopy 11575
rowslice_i 10
rowsmallslice_i 0
select0 35
select_0 50
shallowextract 1735
shallowtrans 396217
str_to_long 130
vecapply 735
vecapply1 925
vecapply2 10
veccatapply 0
veccatselapply 0
vecrange 470
vecrangess 0
vecselapply 150
vecselect 0
vecslice0 615
vecslice_i 825
vecslice_parse_arg 785
vecsmallslice_i 20
vecsum 20

Generated by: LCOV version 1.9