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 - modules - genus2red.c (source / functions) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31042-0fbe168e69) Lines: 91.6 % 1559 1428
Test Date: 2026-07-23 17:04:59 Functions: 100.0 % 60 60
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
discpart 21
igusaall 21
igusaj8 21
zi_pow3mod 21
polymini_zi 35
quadratic 35
igusaj10 42
igusaj8_fromj246 42
ssQ_denom 49
tame_1 49
theta_3_zi 49
polymini_zi2 84
quartic 84
theta_3_zi2 84
tame_567_init_3 105
tame_3 112
genus2igusa 126
tame_4 154
tame_7 154
padicfactors 175
tame_2 189
get_red 294
labelm3 301
tame_6 322
litredtp 336
get_nrq 364
RgX_recip6 413
tame_234_init 455
groupH 462
dicyclic 637
tame_5 651
myval_zi2 672
get_maxc 714
get_nr 889
tame_567_init 1127
myval_zi 1582
tame 1631
factmz 2002
ssQ_red 2730
cyclic 3143
my3val 3164
zv_snf 3353
polymini 3598
get_lambda 3710
theta_j 3906
RgX_to_03 4795
apol2 4795
apol3 4795
apol5 4795
bpol2 4795
genus2red 4795
hyperellintegralmodel 4795
igusaj2 4858
igusaj4 4858
igusaj6 4858
RgX_to_06 5236
genus2localred 5509
stable_reduction 5509
min3 6391
myval 64666

Generated by: LCOV version 2.0-1