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 - bibli2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18953-2660f45) Lines: 1042 1076 96.8 %
Date: 2016-05-30 Functions: 90 93 96.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 794 957 83.0 %

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 797664
ZV_sort_uniq 2177
ZV_union_shallow 74975
binomial 99967
binomialuu 72163
check_positive_entries 126
closurecmp 7889
cmp_Flx 125193
cmp_RgX 90403
cmp_RgX_Rg 2576
cmp_nodata 364034656
cmp_prime_ideal 55104
cmp_prime_over_p 515981
cmp_small 27898956
convol 7
dirdiv 518
dirmul 133
dirval 1302
err_reverse 7
gen_cmp_RgX 820453
gen_indexsort 1295394
gen_indexsort_uniq 126
gen_search 14044674
gen_setminus 7
gen_sort 1915844
gen_sort_inplace 22236373
gen_sort_uniq 4907
gen_sortspec 107621798
gen_sortspec_uniq 973189
gprec 497
gprec_w 2075791
gprec_wtrunc 22302
gtoset 896
indexlexsort 0
indexsort 5060
indexvecsort 0
init_sort 25452644
laplace 21
lexsort 7
mathilbert 133
matqpascal 917
merge_factor 578695
merge_factor_i 350
merge_sort_uniq 32431
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 39778
polcyclo_eval 14385
polcyclo_prime 35031
polhermite 1428
polhermite_eval 1442
polint 368
polint_i 417
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 62118
serlaplace 7
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 105903
setunion 21
sort 589749
sort_extract 1257213
sort_factor 1943773
sort_factor_pol 316428
sort_function 735
stirling 301
stirling1 154
stirling2 1694
tablesearch 7188211
vecbinome 13510
veccmp 1120
vecsearch 70
vecsort 0
vecsort0 665
zv_search 6291658

Generated by: LCOV version 1.9