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

Generated by: LCOV version 2.0-1