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.10.0 lcov report (development 21741-70cf009) Lines: 1010 1038 97.3 %
Date: 2018-01-21 06:18:30 Functions: 90 92 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
QXQ_reverse 679
RgV_polint 210
RgXQ_reverse 70
ZV_indexsort 420
ZV_search 904099
ZV_sort 781844
ZV_sort_inplace 363062
ZV_sort_uniq 3143
ZV_union_shallow 356485
binomial 100002
binomial0 210
binomialuu 76125
check_positive_entries 126
closurecmp 7889
cmp_Flx 184340
cmp_RgX 25543
cmp_RgX_Rg 378
cmp_nodata 365973596
cmp_prime_ideal 49008
cmp_prime_over_p 679050
cmp_small 57520753
convol 7
dirdiv 637
dirmul 189
dirval 1652
err_reverse 7
gen_cmp_RgX 1330194
gen_indexsort 163105
gen_indexsort_uniq 133
gen_search 14885262
gen_setminus 7
gen_sort 2100124
gen_sort_inplace 23702983
gen_sort_uniq 5166
gen_sortspec 110551587
gen_sortspec_uniq 961751
gprec 182
gprec_w 2469953
gprec_wtrunc 396220
gtoset 147
indexlexsort 0
indexsort 11863
indexvecsort 35
init_sort 25971511
laplace 28
lexsort 0
mathilbert 133
matqpascal 1190
merge_factor 1037354
merge_sort_uniq 33131
modreverse 28
polchebyshev 4284
polchebyshev1 2156
polchebyshev1_eval 14
polchebyshev1_eval_aux 70
polchebyshev2 2135
polchebyshev2_eval 35
polchebyshev2_eval_aux 91
polchebyshev_eval 4333
polcyclo 441495
polcyclo_eval 17234
polcyclo_prime 328234
polhermite 1428
polhermite_eval 1442
polint 658
polint_i 16503
pollaplace 14
pollegendre 2184
pollegendre_eval 2163
polrecip 112
serlaplace 14
setbinop 21
setintersect 7
setisset 14
setminus 7
setsearch 35
setunion 35
sort 600999
sort_extract 1396503
sort_factor 3060605
sort_factor_pol 475283
sort_function 537194
stirling 301
stirling1 154
stirling2 1694
tablesearch 18769160
vecbinomial 20400
veccmp 149575
vecsearch 536536
vecsort 2954
vecsort0 658
zv_search 17860280

Generated by: LCOV version 1.11