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) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29806-4d001396c7) Lines: 1325 1458 90.9 %
Date: 2024-12-21 09:08:57 Functions: 60 60 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 322
RgX_to_03 1400
RgX_to_06 1750
apol2 1400
apol3 1400
apol5 1400
bpol2 1400
cyclic 1344
dicyclic 336
discpart 14
factmz 812
genus2igusa 126
genus2localred 1442
genus2red 1400
get_lambda 1743
get_maxc 504
get_nr 455
get_nrq 154
get_red 252
groupH 280
hyperellintegralmodel 1400
igusaall 21
igusaj10 42
igusaj2 1463
igusaj4 1463
igusaj6 1463
igusaj8 21
igusaj8_fromj246 42
labelm3 259
litredtp 280
min3 1932
my3val 2982
myval 23695
myval_zi 1491
myval_zi2 672
padicfactors 119
polymini 1680
polymini_zi 21
polymini_zi2 84
quadratic 21
quartic 84
ssQ_denom 28
ssQ_red 1330
stable_reduction 1442
tame 840
tame_1 28
tame_2 91
tame_234_init 203
tame_3 56
tame_4 56
tame_5 329
tame_567_init 609
tame_567_init_3 91
tame_6 189
tame_7 91
theta_3_zi 28
theta_3_zi2 84
theta_j 1932
zi_pow3mod 14
zv_snf 1421

Generated by: LCOV version 1.16