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 - FlxqE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30733-eb2d773d38) Lines: 866 926 93.5 %
Date: 2026-03-03 09:24:12 Functions: 86 91 94.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FlxqE_add 0
FlxqE_dbl 0
FlxqE_sub 0
Flxq_ellcard_Kedlaya 0
Flxq_ellj_to_a4a6 0
FlxqE_weilpairing 21
Flxq_ellcard_Harley 21
get_trace_Robert 21
FlxqE_log 49
get_FlxqE_group 61
FlxqE_tatepairing 63
Fl_ellheightabovefloor 154
Fl_ellj_trace 371
Fl_end13 371
RgX_is_monic_ZX 392
polisclass 399
Flxq_ffellcard 454
Flxq_ellcard_naive 903
FlxqE_neg 1193
FlxqE_order 1470
FlxqE_Miller_add 4185
FlxqE_chord_update 4185
Flxq_ellcard_Shanks 4774
Flxq_ellpoint 5548
_FlxqE_order 5548
_FlxqE_order_multiple 5548
F3xq_ellcard_naive 6188
FlxqE_neg_i 6740
_FlxqE_sub 6740
_teich_lin 8883
F3xq_ellcardj 9212
Teichmuller_lift 10164
closest_lift 10322
Flxq_ellcard_Satoh 11081
ZpXQ_sqrtnorm_pcyc 11102
Flxq_kronecker 11184
ZpXQ_norm_pcyc 11340
ZpXQ_sqrtnorm 13881
Flxq_ellgens 14370
_FlxqE_pairorder 14541
FlxqE_weilpairing_pre 14562
Flxq_ellcardj 15827
FlxqE_Miller 17707
_teich_invd 20419
_teich_iter 20419
F3xq_ellcard 20993
Flxq_ellgroup 22294
ZpXQ_norm_sqr 22715
Flxq_elltwist 22834
nonsquare_Flxq 22834
_lift_lin 23674
Flxq_ellcard_Kohel 24962
fill_pols 24962
get_Kohel_polynomials 24962
getc2 24962
get_norm 24983
lift_isogeny 24983
zx_is_pcyc 24983
FlxqE_Miller_line 29274
_teich_invl 29302
ZpXQ_norm_mul 32823
FlxqE_Miller_dbl 46974
FlxqE_tangent_update 46974
Flxq_ellj 57173
_lift_invd 60193
_lift_iter 60193
Flxq_ellcard 62605
Flxq_ellcard_i 62605
FlxqE_mul 64068
Flx_next 64365
Flx_renormalize_ip 64365
FlxqE_changepointinv 65804
RgE_to_FlxqE 65804
FlxqE_vert 68964
_FlxqE_rand 74203
RgX_circular_shallow 76251
ZpXQ_frob_cyc 76251
random_F3xqE 76930
random_FlxqE 76941
_lift_invl 83867
ZpXQ_frob 113190
FpXC_powderiv 120428
random_FlxqE_pre 151144
FlxqE_changepoint 157822
FpM_FpXQV_bilinear 180621
FpM_FpXV_bilinear 180621
_FlxqE_mul 277845
_FlxqE_add 677633
FlxqE_add_slope 687144
_FlxqE_dbl 1486247
FlxqE_dbl_slope 1517019

Generated by: LCOV version 1.16