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 30775-9d8a55740a) Lines: 349 354 98.6 %
Date: 2026-04-06 09:26:18 Functions: 40 40 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GMi_get_A2 13952409
GMi_get_M 6977103
GMi_get_VS 7154731
GMi_get_Vga 5726
GMi_get_cd 6977013
GMi_get_degree 14047091
GMi_get_m 6977066
GMi_get_status 6976958
GMi_get_tmax 7066101
Kderivlarge 6977230
Kderivlarge_optim 6976837
Kderivsmall 88753
Kderivsmallinit 3262
Klargeinit 25305
MOD2 10906
RMOD2 10906
RgV_MOD2 3262
RgV_is_CV 22155
dblcoro526 2552260
dbllemma526 14
evalvec 315763
gammamellininv 5824
gammamellininvasymp 28
gammamellininvasymp_i 22169
gammamellininvinit 22162
gammamellininvrt 7060478
gammamellininvrt_i 7066317
gammapoles 3262
get_D 6998979
get_SM 6531
get_SMd 6531
get_Vga 22183
get_gamma 11886
get_tmax 5832594
ishankelspec 3255
lemma526_i 609716
sercoeff 536844
stripzeros 266
sumVga 25676
vp 1046344

Generated by: LCOV version 1.16