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.16.2 lcov report (development 29115-f22e516b23) Lines: 865 926 93.4 %
Date: 2024-04-19 08:07:09 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 147
Fl_ellj_trace 350
Fl_end13 350
RgX_is_monic_ZX 350
polisclass 357
Flxq_ffellcard 454
Flxq_ellcard_naive 896
FlxqE_neg 1193
FlxqE_order 1470
FlxqE_Miller_add 4179
FlxqE_chord_update 4179
Flxq_ellcard_Shanks 4774
Flxq_ellpoint 5572
_FlxqE_order 5572
_FlxqE_order_multiple 5572
F3xq_ellcard_naive 6188
FlxqE_neg_i 6802
_FlxqE_sub 6802
_teich_lin 8953
F3xq_ellcardj 9205
Teichmuller_lift 10234
closest_lift 10346
ZpXQ_sqrtnorm_pcyc 11102
Flxq_ellcard_Satoh 11144
ZpXQ_norm_pcyc 11340
Flxq_kronecker 11553
_FlxqE_pairorder 13830
FlxqE_weilpairing_pre 13851
ZpXQ_sqrtnorm 13951
Flxq_ellgens 14370
Flxq_ellcardj 15820
FlxqE_Miller 17135
_teich_invd 20559
_teich_iter 20559
F3xq_ellcard 20993
Flxq_ellgroup 22294
ZpXQ_norm_sqr 22715
Flxq_elltwist 22834
nonsquare_Flxq 22834
_lift_lin 23744
Flxq_ellcard_Kohel 25032
fill_pols 25032
get_Kohel_polynomials 25032
getc2 25032
get_norm 25053
lift_isogeny 25053
FlxqE_Miller_line 26716
_teich_invl 29512
zx_is_pcyc 32463
ZpXQ_norm_mul 32823
FlxqE_Miller_dbl 43768
FlxqE_tangent_update 43768
Flxq_ellj 57299
_lift_invd 60333
_lift_iter 60333
Flxq_ellcard 62661
Flxq_ellcard_i 62661
FlxqE_mul 64068
Flx_next 64190
Flx_renormalize_ip 64190
FlxqE_vert 65236
FlxqE_changepointinv 65804
RgE_to_FlxqE 65804
_FlxqE_rand 73768
RgX_circular_shallow 76251
ZpXQ_frob_cyc 76251
random_F3xqE 76839
random_FlxqE 76941
_lift_invl 84077
ZpXQ_frob 113610
FpXC_powderiv 120708
random_FlxqE_pre 150709
FlxqE_changepoint 157822
FpM_FpXQV_bilinear 181041
FpM_FpXV_bilinear 181041
_FlxqE_mul 264849
_FlxqE_add 703860
FlxqE_add_slope 713511
_FlxqE_dbl 1565884
FlxqE_dbl_slope 1594061

Generated by: LCOV version 1.14