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 - hyperellperiods.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30835-e55edf4b45) Lines: 278 302 92.1 %
Date: 2026-04-24 09:27:20 Functions: 30 31 96.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgC_round_0 1484
RgM_round_0 364
ZM_symplectic_reduction 364
bezout_apply 658
bezout_step 0
check_hyperell 7
col_bezout 1316
genus2BSDperiod 364
hyperellgenus 735
hyperellperiods 371
int_periods_affinereduction 1484
integration_parameters 364
integration_points_thsh 364
intersection 2310
intersection_abad 182
intersection_abbd 868
intersection_abcb 259
intersection_inner 1001
intersection_spanning 364
make_Aprim 9296
max_spanning 364
periodmat 364
periods_spanning 364
phi_bound 364
row_bezout 658
row_pivot 742
row_swap 371
sqrt_affinereduction 618534
swap_step 371
tau_edge 5194
transvect_step 658

Generated by: LCOV version 1.16