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.16.2 lcov report (development 29115-f22e516b23) Lines: 1223 1272 96.1 %
Date: 2024-03-29 08:06:26 Functions: 92 94 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
err_psi 0
mpsinh0 0
mpcosh0 7
mpcotanh 7
Qp_lngamma 14
acos0 14
atanhui 14
sin12 21
err_atanh 28
ggammah 28
sinx2 28
cos12 49
gcotanh 63
mpasin 98
Gn24 105
mpacos 105
Qp_gamma_neg_Morita 112
atan2_agm 184
cbrtu 245
Qp_gamma_Morita 350
mpfactr_basecase 517
mpfactr_n 636
mpacosh 742
ggamma1m1 1211
mpasinh 1337
Hseries 1400
G4 1921
mpcosh 3451
gcosh 3542
G3 3689
dlogE 4214
cxpsi 4228
psi_lim 4228
psi_sum 4228
mpatanh 4536
gammafrac24_s 5631
ellKk 6023
ellkprime 6023
lngamma_n 7889
mpfactr_small 7889
gacos 7931
gacosh 7994
gasin 8393
serpsiz0 8991
negeuler 9166
sqrtu 9425
Qp_gamma_Dwork 11479
gadw 11479
nboft 11479
Qp_gamma 11829
psi1series 11879
mpsinh 15351
lngamma1 15691
dabs 16660
gasinh 19012
serpsi 20576
dnorm 20790
gsinh 21140
psi_n 21315
sergamma 24296
serlngamma0 24331
mulu_interval_step_i 26697
mulu_interval_step_prec 26697
gamma2_n 36186
gammahs 36186
glngamma 38002
gammafrac24 44575
gatanh 45785
gpsi 46336
gatan 59623
mptanh 77056
gtanh 77161
_mul 148773
bern_u 210024
lngamma_sum 222015
gamma_optim 234078
gamma_use_1 236738
cxgamma 236773
darg 242044
dcxlog 242044
trans_fix_arg 249695
mpfactr 419386
ggamma 647505
mpsinhcosh 1448582
tr 2047662
cxarg 4139963
mparg 4139964
garg 4157427
mpatan 4162478
get_nmax 4320010
atanhuu 4337019
muliunextu 8103651
bern_unextu 8103884
rfix 8279922

Generated by: LCOV version 1.14