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.0 lcov report (development 29821-ad8e616c7c) Lines: 588 611 96.2 %
Date: 2024-12-28 09:09:04 Functions: 47 47 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpE_issingular 182
Qp_agm2_sequence 259
Qp_ascending_Landen 56
Qp_descending_Landen 357
Tate_prec 686
addii3 672
addii4 448
addii5 224
doellQp_Tate 119
doellQp_ab 336
doellQp_root 287
ellQp_AGM 154
ellQp_L 7
ellQp_Tate_uniformization 798
ellQp_ab 126
ellQp_q 147
ellQp_root 539
ellQp_u 203
ellQp_u2 77
ellformaldifferential 70
ellformaldifferential_i 343
ellformalexp 70
ellformallog 147
ellformallogsigma_t 126
ellformalpoint 70
ellformalpoint_i 266
ellformalw 497
ellnonsingularmultiple 140
ellpadicL 63
ellpadicL_init 91
ellpadicL_symbol 91
ellpadic_i 126
ellpadicbsd 28
ellpadicfrobenius 189
ellpadicheight 140
ellpadiclog 14
ellpadicregulator 7
ellpadics2 35
ellpadics2_tate 14
get_Euler 7
log_prec 7
logsigma_prec 126
precp_fix 266
rellg 4102
tfromx 126
torsion_order 28
xmP 224

Generated by: LCOV version 1.16