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 - ellpadic.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30702-bddb8d6928) Lines: 588 611 96.2 %
Date: 2026-02-23 02:23:56 Functions: 47 47 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpE_issingular 156
Qp_agm2_sequence 222
Qp_ascending_Landen 48
Qp_descending_Landen 306
Tate_prec 588
addii3 576
addii4 384
addii5 192
doellQp_Tate 102
doellQp_ab 288
doellQp_root 246
ellQp_AGM 132
ellQp_L 6
ellQp_Tate_uniformization 684
ellQp_ab 108
ellQp_q 126
ellQp_root 462
ellQp_u 174
ellQp_u2 66
ellformaldifferential 60
ellformaldifferential_i 294
ellformalexp 60
ellformallog 126
ellformallogsigma_t 108
ellformalpoint 60
ellformalpoint_i 228
ellformalw 426
ellnonsingularmultiple 120
ellpadicL 54
ellpadicL_init 78
ellpadicL_symbol 78
ellpadic_i 108
ellpadicbsd 24
ellpadicfrobenius 162
ellpadicheight 120
ellpadiclog 12
ellpadicregulator 6
ellpadics2 30
ellpadics2_tate 12
get_Euler 6
log_prec 6
logsigma_prec 108
precp_fix 228
rellg 3516
tfromx 108
torsion_order 24
xmP 192

Generated by: LCOV version 1.16