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

Generated by: LCOV version 2.0-1