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.1 lcov report (development 28880-3b5364847c) Lines: 1221 1270 96.1 %
Date: 2023-12-01 07:53:15 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
mpatanh 42
cos12 49
gcotanh 63
mpasin 98
Gn24 105
mpacos 105
Qp_gamma_neg_Morita 112
atan2_agm 196
cbrtu 245
Qp_gamma_Morita 350
mpasinh 483
mpfactr_basecase 517
mpfactr_n 636
mpacosh 742
ggamma1m1 1211
Hseries 1400
G4 1897
G3 3689
mpcosh 3696
gcosh 3787
dlogE 4214
cxpsi 4228
psi_lim 4228
psi_sum 4228
gammafrac24_s 5607
ellKk 5999
ellkprime 5999
lngamma_n 7889
mpfactr_small 7889
gacos 7931
gacosh 7994
gasin 8393
serpsiz0 8988
negeuler 9163
sqrtu 9401
Qp_gamma_Dwork 11479
gadw 11479
nboft 11479
Qp_gamma 11829
psi1series 11879
gatanh 15183
mpsinh 15351
lngamma1 15355
gasinh 15715
dabs 16660
mpsinhcosh 17416
dnorm 20454
serpsi 20573
gsinh 21140
psi_n 21315
gatan 21866
sergamma 23590
serlngamma0 23625
mulu_interval_step_i 26627
mulu_interval_step_prec 26627
gamma2_n 35413
gammahs 35413
glngamma 35595
gammafrac24 43442
gpsi 46333
mptanh 77056
gtanh 77161
_mul 148773
get_nmax 196708
atanhuu 197065
bern_u 210166
lngamma_sum 219130
gamma_optim 231023
gamma_use_1 233893
cxgamma 233931
dcxlog 238989
darg 238990
trans_fix_arg 246818
mpfactr 441782
ggamma 668276
tr 2045154
cxarg 3627569
mparg 3627574
mpatan 3641095
garg 3645019
rfix 7255122
muliunextu 8050413
bern_unextu 8050549

Generated by: LCOV version 1.14