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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31042-0fbe168e69) Lines: 98.6 % 354 349
Test Date: 2026-07-23 17:04:59 Functions: 100.0 % 40 40
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
dbllemma526 14
gammamellininvasymp 28
stripzeros 266
ishankelspec 3381
Kderivsmallinit 3388
RgV_MOD2 3388
gammapoles 3388
GMi_get_Vga 5726
gammamellininv 5824
get_SM 6783
get_SMd 6783
MOD2 11158
RMOD2 11158
get_gamma 12390
RgV_is_CV 22365
gammamellininvinit 22372
gammamellininvasymp_i 22379
get_Vga 22393
Klargeinit 25641
sumVga 26012
Kderivsmall 89335
evalvec 316562
sercoeff 553987
lemma526_i 617311
vp 1065349
dblcoro526 2560107
get_tmax 5817683
GMi_get_M 6964204
GMi_get_cd 6964204
GMi_get_m 6964204
GMi_get_status 6964204
Kderivlarge 6964204
Kderivlarge_optim 6964204
get_D 6986562
gammamellininvrt 7047715
GMi_get_tmax 7053539
gammamellininvrt_i 7053539
GMi_get_VS 7142874
GMi_get_A2 13928408
GMi_get_degree 14023567

Generated by: LCOV version 2.0-1