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

Generated by: LCOV version 1.16