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

Generated by: LCOV version 1.16