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 - bibli2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16746-c2cb716) Lines: 996 1036 96.1 %
Date: 2014-08-31 Functions: 87 90 96.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 746 914 81.6 %

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 325
RgV_polint 20
RgXQ_reverse 25
ZV_indexsort 410
ZV_search 353670
ZV_sort 569480
ZV_sort_uniq 795
ZV_union_shallow 55
binomial 26345
binomialuu 16385
check_positive_entries 100
closurecmp 5635
cmp_RgX 43593
cmp_RgX_Rg 515
cmp_nodata 272912453
cmp_prime_ideal 31375
cmp_prime_over_p 380273
cmp_small 1651607
convol 10
dirdiv 25
dirmul 25
dirval 100
err_reverse 5
gen_cmp_RgX 512665
gen_indexsort 946629
gen_indexsort_uniq 50
gen_search 7705940
gen_setminus 10
gen_sort 1333468
gen_sort_inplace 17289427
gen_sort_uniq 1615
gen_sortspec 82972813
gen_sortspec_uniq 645420
gprec 360
gprec_w 1121215
gprec_wtrunc 9910
gtoset 50
indexlexsort 0
indexsort 3785
indexvecsort 0
init_sort 19571189
laplace 10
lexsort 5
mathilbert 140
matqpascal 260
merge_factor 12880
merge_factor_i 215
merge_sort_uniq 22820
modreverse 25
numtoperm 610
permtonum 610
polchebyshev 3065
polchebyshev1 1570
polchebyshev1_eval 10
polchebyshev1_eval_aux 50
polchebyshev2 1525
polchebyshev2_eval 25
polchebyshev2_eval_aux 65
polchebyshev_eval 3095
polcyclo 18978
polcyclo_eval 9765
polcyclo_prime 15863
polhermite 1020
polhermite_eval 1030
polint 65
polint_i 265
pollegendre 1545
pollegendre_eval 1545
polrecip 10
setbinop 15
setintersect 10
setisset 15
setminus 10
setsearch 35
setunion 10
sort 417279
sort_extract 921861
sort_factor 343484
sort_factor_pol 214202
sort_function 520
stirling 215
stirling1 110
stirling2 1210
tablesearch 543245
vecbinome 6540
veccmp 850
vecsearch 50
vecsort 0
vecsort0 470
zv_search 189275

Generated by: LCOV version 1.9