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.1 lcov report (development 22726-9e20c6a88) Lines: 1034 1063 97.3 %
Date: 2018-06-23 05:36:28 Functions: 93 95 97.9 %
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
key_search 7
setintersect 7
setminus 7
polchebyshev1_eval 14
pollaplace 14
serlaplace 14
setisset 14
setbinop 21
laplace 28
modreverse 28
indexvecsort 35
polchebyshev2_eval 35
setsearch 35
setunion 35
polchebyshev1_eval_aux 70
gprec 77
polchebyshev2_eval_aux 91
RgXQ_reverse 112
polrecip 119
check_positive_entries 126
mathilbert 133
gen_indexsort_uniq 147
gtoset 147
stirling1 154
RgV_polint 210
binomial0 210
dirmul 238
stirling 301
ZV_indexsort 413
cmp_RgX_Rg 413
dirdiv 644
polint 658
vecsort0 714
QXQ_reverse 742
matqpascal 1190
polhermite 1428
polhermite_eval 1442
stirling2 1694
dirval 1764
polchebyshev2 2135
polchebyshev1 2156
pollegendre_eval 2163
pollegendre 2184
vecsort 2954
ZV_sort_uniq 3724
polchebyshev 4284
polchebyshev_eval 4333
gen_sort_uniq 6426
closurecmp 7889
indexsort 12144
polint_i 16503
polcyclo_eval 17262
vecbinomial 23018
cmp_RgX 27727
merge_sort_uniq 33656
cmp_prime_ideal 51345
binomialuu 80080
binomial 100093
veccmp 149575
gen_indexsort 168925
cmp_Flx 198810
polcyclo_prime 330520
ZV_union_shallow 362204
ZV_sort_inplace 363230
polcyclo 444868
sort_factor_pol 502432
vecsearch 549647
sort_function 550361
sort 602683
gprec_wtrunc 695652
cmp_prime_over_p 701476
triv_sort 708521
ZV_sort 781936
ZV_search 908670
gen_sortspec_uniq 1009386
merge_factor 1043458
sort_extract 1413783
gen_cmp_RgX 1437491
gen_sort 2115885
gprec_w 2677945
sort_factor 3099189
gprec_wensure 3565421
zv_search 17941469
tablesearch 18860023
gen_search 20707113
gen_sort_inplace 26132977
init_sort 28424388
cmp_small 55673059
gen_sortspec 121863957
cmp_nodata 440304260

Generated by: LCOV version 1.13