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 17953-c39f2e6) Lines: 1022 1062 96.2 %
Date: 2015-09-01 Functions: 88 92 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 762 931 81.8 %

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 560
RgV_polint 28
RgXQ_reverse 28
ZV_indexsort 119
ZV_search 882350
ZV_sort 797251
ZV_sort_uniq 2226
ZV_union_shallow 74968
binomial 99883
binomialuu 61838
check_positive_entries 126
closurecmp 7889
cmp_RgX 91830
cmp_RgX_Rg 1708
cmp_nodata 362630099
cmp_prime_ideal 55361
cmp_prime_over_p 435225
cmp_small 24302521
convol 7
dirdiv 28
dirmul 28
dirval 112
err_reverse 7
gen_cmp_RgX 755437
gen_indexsort 1291759
gen_indexsort_uniq 63
gen_search 10789520
gen_setminus 7
gen_sort 1849388
gen_sort_inplace 22916985
gen_sort_uniq 3997
gen_sortspec 109846881
gen_sortspec_uniq 915180
gprec 497
gprec_w 1631319
gprec_wtrunc 22302
gtoset 63
indexlexsort 0
indexsort 4843
indexvecsort 0
init_sort 26062192
laplace 21
lexsort 0
mathilbert 133
matqpascal 483
merge_factor 93028
merge_factor_i 308
merge_sort_uniq 32452
modreverse 28
numtoperm 847
permtonum 847
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 40436
polcyclo_eval 14147
polcyclo_prime 35388
polhermite 1428
polhermite_eval 1442
polint 368
polint_i 536
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 7
serlaplace 7
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 35
setunion 7
sort 588713
sort_extract 1199283
sort_factor 488229
sort_factor_pol 282716
sort_function 714
stirling 301
stirling1 154
stirling2 1694
tablesearch 5004687
vecbinome 12327
veccmp 1120
vecsearch 70
vecsort 0
vecsort0 644
zv_search 4121609

Generated by: LCOV version 1.9