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 - hypergeom.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 682 686 99.4 %
Date: 2024-04-20 08:07:50 Functions: 71 71 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
hyperu 14
F01 21
F21lam 28
airy 42
myint32 42
F32 49
F20 56
F31 56
vpoch 56
ok_F32 63
serhypergeom 63
sumz 63
airy_i 70
hyperu_F11 70
hyperu_i 70
Qp_hypergeom 77
F21taylor6 84
check_hyp1 91
F21finite_i 119
F21taylor5 119
intnumsplit 119
myint21 119
divgamma2 140
multgam 147
vp 161
F21taylor4 238
F10 350
f_pochall_alt 371
mkendpt 385
f_pochall 2086
hypergeom 3024
hypersimplify 3290
hypergeom_i 3311
FBaux1 4431
bind 4711
F21finite 4739
F21finitetaylor 4739
OK_gadd 5796
RgV_z_add 6048
hypergeom_arg 6048
F21finitelim 8498
F21taylorlim 8498
FBaux2 8498
fF32 11298
F21taylor1 12572
islong 13013
fF21neg2 13258
mul4 13258
fF31 17472
F21taylor 23226
Ftaylor 24430
F21taylorind 24563
isnegint 28035
mulgammav2 28588
mulgamma2 28924
F21ind 29428
F21 30247
F21_i 30317
precFtaylor 37667
Npochden 38458
fF212 60480
mul3 60599
is0 73934
vnormpol2 75334
normpol2 111867
Npoch 114044
poch 114310
zind 115983
isnegint2 116200
isnegint_approx 117712
cind 122423

Generated by: LCOV version 1.14