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 to exceed 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 - trans2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23008-54b2e2f01) Lines: 1051 1096 95.9 %
Date: 2018-09-20 05:37:46 Functions: 81 81 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mpcotanh 7
acos0 14
cbrtu 14
cos12 21
sin12 21
Qp_gamma_Dwork 28
Qp_gamma_neg_Morita 28
gadw 28
ggammah 28
nboft 28
sinx2 28
Qp_gamma_Morita 49
gcotanh 63
Qp_gamma 77
Gn24 84
mpasin 98
mpatanh 98
mpacos 105
atan2_agm 196
G3 273
mpfactr_basecase 342
mpfactr_n 342
mpasinh 483
G4 511
mpacosh 728
Hseries 756
gammafrac24_s 868
ellKk 1092
ellkprime 1092
ggamma1m1 1211
sqrtu 1225
lngamma1 2237
mpcosh 3584
gcosh 3668
serpsiz0 4424
lngamma_n 5117
mpfactr_small 5117
serpsi1 6944
gacos 7938
gacosh 7980
gasin 8183
serpsi 11382
dabs 12838
mpsinh 15365
gatanh 15603
gasinh 15715
gsinh 17311
serlngamma 17626
serlngamma0 17661
gatan 19374
mulu_interval_step_i 21286
mulu_interval_step_prec 21286
dnorm 25235
cxpsi 25242
psi_sum 25242
glngamma 30968
gamma2_n 32025
gammahs 32025
gammafrac24 33432
gpsi 57876
_mul 64318
mpfactr 67367
mptanh 77056
gtanh 77161
lngamma_sum 225750
cxgamma 228466
darg 253540
dcxlog 253540
trans_fix_arg 260491
ggamma 314181
cxarg 546001
mparg 546001
garg 547142
mpatan 557171
divgunu 665997
tr 956687
rfix 1092002
bern_u 1269334
bern_unu 8405028
muliunu 8405028
divrunu 22145759

Generated by: LCOV version 1.13