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-bordeaux.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.10.0 lcov report (development 20443-183d202) Lines: 423 512 82.6 %
Date: 2017-03-27 05:17:48 Functions: 38 48 79.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgM_diagonal 0
RgM_diagonal_shallow 107580
apply0 5980
check_callgen1 6045
diagonal 375
diagonal_shallow 10920
extract0 500
extract_copy 50
extract_selector_ok 25
fold0 20
genapply 5980
genfold 20
genindexselect 60
genselect 55
get_range 80
gtomat 35020
gtrans 3530
mapapply1 5
matmuldiagonal 5
matmultodiagonal 5
matslice0 100
parapply 0
parapply_worker 0
parselect 0
row_transpose 3702785
row_transposecopy 12510
rowslice_i 10
rowsmallslice_i 0
select0 65
select_0 50
shallowextract 2325
shallowmatextract 0
shallowtrans 720135
str_to_long 130
vecapply 75550
vecapply1 81540
vecapply2 10
veccatapply 0
veccatselapply 0
vecrange 780
vecrangess 0
vecselapply 180
vecselect 0
vecslice0 2395
vecslice_i 2725
vecslice_parse_arg 2585
vecsmallslice_i 20
vecsum 54245

Generated by: LCOV version 1.11