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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31042-0fbe168e69) Lines: 93.5 % 478 447
Test Date: 2026-07-23 17:04:59 Functions: 93.3 % 60 56
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
F2x_Teichmuller 7191
F2x_is_pcyc 7422
F2xqE_Miller 9120
F2xqE_Miller_add 9120
F2xqE_Miller_dbl 16897
F2xqE_Miller_line 16932
F2xqE_add 37621
F2xqE_add_slope 37656
F2xqE_changepoint 171794
F2xqE_changepointinv 10360
F2xqE_chord_update 9120
F2xqE_dbl 103686
F2xqE_dbl_slope 120660
F2xqE_log 42
F2xqE_mul 0
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 16897
F2xqE_tatepairing 28
F2xqE_vert 35102
F2xqE_weilpairing 5371
F2xq_ellcard 45699
F2xq_ellgens 3738
F2xq_ellgroup 3808
F2xq_elltrace_Harley 7765
F2xq_elltracej 37734
F2xq_elltwist 3514
RgE_to_F2xqE 10360
Z2XQ_frob 16682
Z2XQ_invnorm 7184
Z2XQ_invnorm_pcyc 238
Z2x_rshift 69228
Z2xq_frob 34747
_F2xqE_add 37621
_F2xqE_dbl 103686
_F2xqE_mul 29520
_F2xqE_pairorder 401
_F2xqE_rand 13824
_can_invd 16427
_can_invls 50918
_can_iter 16427
_can_lin 10
_can_lins 34481
_frob_invls 51429
_frob_lin 10
_frob_lins 34747
_lift_invd 16672
_lift_iter 16672
ell_to_a4a6_F2xq 46168
gen_Z2X_Dixon 33139
gen_Z2x_Dixon 171575
get_F2xqE_group 0
get_r 10465
get_v 23855
is_2_torsion 19373
nonzerotrace_F2xq 3514
random_F2xqE 181796
solve_AGM_eqn 7422

Generated by: LCOV version 2.0-1