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.18.1 lcov report (development 30074-db9b3c0519) Lines: 682 686 99.4 %
Date: 2025-03-13 08:38:27 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
hyperu 12
F01 18
F21lam 24
multgam 24
airy 36
myint32 36
F32 42
F20 48
F31 48
vpoch 48
ok_F32 54
serhypergeom 54
sumz 54
airy_i 60
hyperu_F11 60
hyperu_i 60
Qp_hypergeom 66
F21taylor6 72
F21taylor5 78
check_hyp1 78
F21finite_i 102
int21 102
intnumsplit 102
divgamma2 120
vp 138
F21taylor4 162
bind 174
F10 300
f_pochall_alt 318
mkendpt 330
f_pochall 1788
hypergeom 2598
hypersimplify 2826
hypergeom_i 2844
FBaux1 3798
F21finite 4062
F21finitetaylor 4062
OK_gadd 4968
RgV_z_add 5184
hypergeom_arg 5196
F21finitelim 7290
F21taylorlim 7290
FBaux2 7290
fF32 9684
F21taylor 9936
F21taylor1 10776
islong 11088
fF31 14976
Ftaylor 20937
F21taylorind 21057
isnegint 23835
mulgammav2 24516
mulgamma2 24702
F21ind 25227
F21 25932
F21_i 25992
precFtaylor 32289
Npochden 32967
isnegint_approx 50454
cind 50628
fF21 63204
mul3 63204
is0 63318
vnormpol2 64578
zind 95541
normpol2 95895
Npoch 97761
poch 97989
isnegint2 99414

Generated by: LCOV version 1.16