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
bezout_step 0
check_hyperell 7
intersection_abad 182
intersection_abcb 259
RgM_round_0 364
ZM_symplectic_reduction 364
genus2BSDperiod 364
integration_parameters 364
integration_points_thsh 364
intersection_spanning 364
max_spanning 364
periodmat 364
periods_spanning 364
phi_bound 364
hyperellperiods 371
row_swap 371
swap_step 371
bezout_apply 658
row_bezout 658
transvect_step 658
hyperellgenus 735
row_pivot 742
intersection_abbd 868
intersection_inner 1001
col_bezout 1316
RgC_round_0 1484
int_periods_affinereduction 1484
intersection 2310
tau_edge 5194
make_Aprim 9296
sqrt_affinereduction 618534

Generated by: LCOV version 1.16