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.0 lcov report (development 29712-7c8a932571) Lines: 865 926 93.4 %
Date: 2024-11-15 09:08:45 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 9205
Fl_ellheightabovefloor 147
Fl_ellj_trace 350
Fl_end13 350
Flx_next 64190
Flx_renormalize_ip 64190
FlxqE_Miller 17135
FlxqE_Miller_add 4179
FlxqE_Miller_dbl 43768
FlxqE_Miller_line 26716
FlxqE_add 0
FlxqE_add_slope 713232
FlxqE_changepoint 157822
FlxqE_changepointinv 65804
FlxqE_chord_update 4179
FlxqE_dbl 0
FlxqE_dbl_slope 1593591
FlxqE_log 49
FlxqE_mul 64068
FlxqE_neg 1193
FlxqE_neg_i 6819
FlxqE_order 1470
FlxqE_sub 0
FlxqE_tangent_update 43768
FlxqE_tatepairing 63
FlxqE_vert 65236
FlxqE_weilpairing 21
FlxqE_weilpairing_pre 13844
Flxq_ellcard 62661
Flxq_ellcard_Harley 21
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 25032
Flxq_ellcard_Satoh 11144
Flxq_ellcard_Shanks 4774
Flxq_ellcard_i 62661
Flxq_ellcard_naive 896
Flxq_ellcardj 15820
Flxq_ellgens 14370
Flxq_ellgroup 22294
Flxq_ellj 57299
Flxq_ellj_to_a4a6 0
Flxq_ellpoint 5543
Flxq_elltwist 22834
Flxq_ffellcard 454
Flxq_kronecker 11391
FpM_FpXQV_bilinear 181041
FpM_FpXV_bilinear 181041
FpXC_powderiv 120708
RgE_to_FlxqE 65804
RgX_circular_shallow 76251
RgX_is_monic_ZX 350
Teichmuller_lift 10234
ZpXQ_frob 113610
ZpXQ_frob_cyc 76251
ZpXQ_norm_mul 32823
ZpXQ_norm_pcyc 11340
ZpXQ_norm_sqr 22715
ZpXQ_sqrtnorm 13951
ZpXQ_sqrtnorm_pcyc 11102
_FlxqE_add 703564
_FlxqE_dbl 1565400
_FlxqE_mul 264706
_FlxqE_order 5543
_FlxqE_order_multiple 5543
_FlxqE_pairorder 13823
_FlxqE_rand 73740
_FlxqE_sub 6819
_lift_invd 60333
_lift_invl 84077
_lift_iter 60333
_lift_lin 23744
_teich_invd 20559
_teich_invl 29512
_teich_iter 20559
_teich_lin 8953
closest_lift 10317
fill_pols 25032
get_FlxqE_group 61
get_Kohel_polynomials 25032
get_norm 25053
get_trace_Robert 21
getc2 25032
lift_isogeny 25053
nonsquare_Flxq 22834
polisclass 357
random_F3xqE 76839
random_FlxqE 76941
random_FlxqE_pre 150681
zx_is_pcyc 32465

Generated by: LCOV version 1.16