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 - F2xqE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30775-9d8a55740a) Lines: 423 454 93.2 %
Date: 2026-04-06 09:26:18 Functions: 55 59 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xqE_mul 0
F2xqE_neg_i 0
F2xqE_sub 0
get_F2xqE_group 0
_can_lin 10
_frob_lin 10
F2xqE_tatepairing 28
F2xqE_log 42
F2xqE_neg 84
Z2XQ_invnorm_pcyc 238
F2xqE_order 280
_F2xqE_pairorder 385
F2xq_elltwist 3514
nonzerotrace_F2xq 3514
F2xq_ellgens 3738
F2xq_ellgroup 3808
F2xqE_weilpairing 5355
Z2XQ_invnorm 7169
F2x_Teichmuller 7176
F2x_is_pcyc 7407
solve_AGM_eqn 7407
F2xq_elltrace_Harley 7736
F2xqE_Miller 9086
F2xqE_Miller_add 9086
F2xqE_chord_update 9086
get_r 10073
F2xqE_changepointinv 10360
RgE_to_F2xqE 10360
_F2xqE_rand 13433
_can_invd 16336
_can_iter 16336
_lift_iter 16580
_lift_invd 16581
Z2XQ_frob 16590
F2xqE_Miller_dbl 16863
F2xqE_tangent_update 16863
F2xqE_Miller_line 16898
is_2_torsion 19271
get_v 23870
_F2xqE_mul 27832
gen_Z2X_Dixon 32959
_can_lins 33623
Z2xq_frob 33891
_frob_lins 33892
F2xqE_vert 35000
F2xqE_add 36981
_F2xqE_add 36981
F2xqE_add_slope 37016
F2xq_elltracej 37653
F2xq_ellcard 45592
_can_invls 49965
_frob_invls 50483
Z2x_rshift 67502
F2xqE_dbl 101605
_F2xqE_dbl 101605
F2xqE_dbl_slope 118524
gen_Z2x_Dixon 167920
F2xqE_changepoint 171542
random_F2xqE 181153

Generated by: LCOV version 1.16