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 21913-852521c) Lines: 1012 1040 97.3 %
Date: 2018-02-19 06:15:51 Functions: 90 92 97.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
indexlexsort 0
lexsort 0
convol 7
err_reverse 7
gen_setminus 7
setintersect 7
setminus 7
polchebyshev1_eval 14
pollaplace 14
serlaplace 14
setisset 14
setbinop 21
RgXQ_reverse 28
laplace 28
modreverse 28
indexvecsort 35
polchebyshev2_eval 35
setsearch 35
setunion 35
polchebyshev1_eval_aux 70
polchebyshev2_eval_aux 91
polrecip 119
check_positive_entries 126
mathilbert 133
gen_indexsort_uniq 140
gtoset 147
stirling1 154
gprec 182
dirmul 189
RgV_polint 210
binomial0 210
stirling 301
cmp_RgX_Rg 413
ZV_indexsort 420
dirdiv 637
polint 658
vecsort0 658
QXQ_reverse 740
matqpascal 1190
polhermite 1428
polhermite_eval 1442
dirval 1652
stirling2 1694
polchebyshev2 2135
polchebyshev1 2156
pollegendre_eval 2163
pollegendre 2184
vecsort 2954
ZV_sort_uniq 3150
polchebyshev 4284
polchebyshev_eval 4333
gen_sort_uniq 5264
closurecmp 7889
indexsort 11938
polint_i 16503
polcyclo_eval 17234
vecbinomial 21849
cmp_RgX 27349
merge_sort_uniq 33530
cmp_prime_ideal 49811
binomialuu 76125
binomial 100093
veccmp 149575
gen_indexsort 163417
cmp_Flx 186965
polcyclo_prime 328513
ZV_union_shallow 359796
ZV_sort_inplace 363062
gprec_wtrunc 397241
polcyclo 441820
sort_factor_pol 484715
vecsearch 536536
sort_function 537194
sort 601335
cmp_prime_over_p 679281
ZV_sort 781809
ZV_search 904099
gen_sortspec_uniq 1005088
merge_factor 1041050
gen_cmp_RgX 1366381
sort_extract 1397724
gen_sort 2101129
gprec_w 2490470
sort_factor 3078303
zv_search 17974650
tablesearch 18883530
gen_search 20679841
gen_sort_inplace 23706998
init_sort 25976948
cmp_small 57898176
gen_sortspec 110751441
cmp_nodata 404781851

Generated by: LCOV version 1.11