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 18586-b372913) Lines: 1031 1066 96.7 %
Date: 2016-02-08 Functions: 88 92 95.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 781 943 82.8 %

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 560
RgV_polint 28
RgXQ_reverse 28
ZV_indexsort 448
ZV_search 894145
ZV_sort 797447
ZV_sort_uniq 2177
ZV_union_shallow 74968
binomial 99904
binomialuu 70679
check_positive_entries 126
closurecmp 7889
cmp_RgX 91766
cmp_RgX_Rg 1736
cmp_nodata 359029517
cmp_prime_ideal 55433
cmp_prime_over_p 513678
cmp_small 23378290
convol 7
dirdiv 511
dirmul 119
dirval 1260
err_reverse 7
gen_cmp_RgX 824744
gen_indexsort 1294540
gen_indexsort_uniq 63
gen_search 12901679
gen_setminus 7
gen_sort 1909943
gen_sort_inplace 22107164
gen_sort_uniq 4879
gen_sortspec 106871589
gen_sortspec_uniq 969220
gprec 497
gprec_w 2046066
gprec_wtrunc 22302
gtoset 896
indexlexsort 0
indexsort 5011
indexvecsort 0
init_sort 25316589
laplace 21
lexsort 0
mathilbert 133
matqpascal 658
merge_factor 329810
merge_factor_i 350
merge_sort_uniq 32830
modreverse 28
numtoperm 9485
permtonum 5166
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 39533
polcyclo_eval 14308
polcyclo_prime 34786
polhermite 1428
polhermite_eval 1442
polint 368
polint_i 417
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 60641
serlaplace 7
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 105903
setunion 7
sort 589497
sort_extract 1252481
sort_factor 1235840
sort_factor_pol 317606
sort_function 721
stirling 301
stirling1 154
stirling2 1694
tablesearch 5155720
vecbinome 12985
veccmp 1120
vecsearch 70
vecsort 0
vecsort0 651
zv_search 4259356

Generated by: LCOV version 1.9