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-02-28 08:03:13 Functions: 71 71 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14