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 - mellininv.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30762-238ab8e6c0) Lines: 349 354 98.6 %
Date: 2026-03-22 09:27:12 Functions: 40 40 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dbllemma526 14
gammamellininvasymp 28
stripzeros 266
ishankelspec 3255
Kderivsmallinit 3262
RgV_MOD2 3262
gammapoles 3262
GMi_get_Vga 5726
gammamellininv 5824
get_SM 6531
get_SMd 6531
MOD2 10906
RMOD2 10906
get_gamma 11886
RgV_is_CV 22155
gammamellininvinit 22162
gammamellininvasymp_i 22169
get_Vga 22183
Klargeinit 25305
sumVga 25676
Kderivsmall 88753
evalvec 315769
sercoeff 536844
lemma526_i 609716
vp 1046344
dblcoro526 2552260
get_tmax 5832164
Kderivlarge 6976361
Kderivlarge_optim 6976488
GMi_get_M 6976658
GMi_get_m 6976699
GMi_get_status 6976755
GMi_get_cd 6976785
get_D 6998700
gammamellininvrt 7060326
GMi_get_tmax 7065552
gammamellininvrt_i 7065970
GMi_get_VS 7154165
GMi_get_A2 13952324
GMi_get_degree 14046564

Generated by: LCOV version 1.16