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) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31042-0fbe168e69) Lines: 95.0 % 932 885
Test Date: 2026-07-23 17:04:59 Functions: 95.7 % 92 88
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
FlxqE_add 0
FlxqE_dbl 0
FlxqE_sub 0
Flxq_ellj_to_a4a6 0
FlxqE_mul 7
FlxqE_weilpairing 21
Flxq_ellcard_Harley 35
get_trace_Robert 35
FlxqE_log 49
get_FlxqE_group 54
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 1060
FlxqE_order 1470
FlxqE_changepointinv 1743
RgE_to_FlxqE 1743
FlxqE_Miller_add 4409
FlxqE_chord_update 4409
Flxq_ellcard_Shanks 4774
Flxq_ellpoint 5543
_FlxqE_order 5543
_FlxqE_order_multiple 5543
F3xq_ellcard_naive 6237
FlxqE_neg_i 6742
_FlxqE_sub 6742
_teich_lin 9079
F3xq_ellcardj 9240
Teichmuller_lift 10248
closest_lift 10317
ZpXQ_sqrtnorm_pcyc 11102
Flxq_ellcard_Satoh 11165
Flxq_kronecker 11240
ZpXQ_norm_pcyc 11340
ZpXQ_sqrtnorm 13965
_FlxqE_pairorder 14271
FlxqE_weilpairing_pre 14292
Flxq_ellgens 14370
Flxq_ellcardj 15826
FlxqE_Miller 17575
_teich_invd 20622
_teich_iter 20622
F3xq_ellcard 21042
Flxq_ellgroup 22294
ZpXQ_norm_sqr 22715
Flxq_elltwist 22834
nonsquare_Flxq 22834
_lift_lin 23884
Flxq_ellcard_Kohel 25032
fill_pols 25032
get_Kohel_polynomials 25032
getc2 25032
get_norm 25067
lift_isogeny 25067
zx_is_pcyc 25067
FlxqE_Miller_line 28972
_teich_invl 29701
ell_to_a4a6_F3xq 31549
ZpXQ_norm_mul 32823
FlxqE_Miller_dbl 46210
FlxqE_tangent_update 46211
Flxq_ellj 57333
_lift_invd 60396
_lift_iter 60396
Flxq_ellcard 62759
Flxq_ellcard_i 62759
Flx_next 64512
Flx_renormalize_ip 64512
FlxqE_vert 68328
ell_to_a4a6_Flxq 73874
_FlxqE_rand 74593
RgX_circular_shallow 76251
ZpXQ_frob_cyc 76251
random_FlxqE 76955
random_F3xqE 77165
_lift_invl 84280
FlxqE_changepoint 93775
ZpXQ_frob 114016
FpXC_powderiv 120862
random_FlxqE_pre 151548
FpM_FpXQV_bilinear 181258
FpM_FpXV_bilinear 181258
_FlxqE_mul 215795
_FlxqE_add 404701
FlxqE_add_slope 414410
_FlxqE_dbl 722088
FlxqE_dbl_slope 752214

Generated by: LCOV version 2.0-1