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 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.11.0 lcov report (development 22851-e834f1b2f) Lines: 913 941 97.0 %
Date: 2018-07-16 05:36:59 Functions: 96 97 99.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Harley 21
ZpXQX_liftrootmod_vald 21
get_H1 21
getc5 21
liftcurve 21
get_FlxqE_group 34
FlxqE_log 49
FlxqE_tatepairing 56
Flxq_ellj_to_a4a6 280
FlxqE_neg 490
Flxq_ellcard_naive 672
Flxq_ellcard_Shanks 756
FlxqE_find_order 870
Flxq_ellpoint 870
FlxqE_neg_i 1096
FlxqE_sub 1096
closest_lift 1626
Flxq_kronecker 1768
F3xq_ellcard_naive 2240
FlxqE_order 2326
_can_lin 3654
F3x_canonlift 3717
FlxqE_Miller_add 4152
FlxqE_chord_update 4152
F3xq_ellcardj 6426
_can_invd 7476
_can_iter 7476
nonsquare_Fl 7686
_teich_lin 8953
_can5_lin 8967
Teichmuller_lift 10213
Flxq_ellcard_Satoh 10899
ZpXQ_sqrtnorm_pcyc 11102
_can_invl 11130
ZpXQ_norm_pcyc 11340
_FlxqE_pairorder 12560
FlxqE_weilpairing 12574
Flx_canonlift 13930
ZpXQ_sqrtnorm 13930
Flxq_ellgens 14363
Flxq_ellcardj 14707
Flxq_ellgroup 15609
F3xq_ellcard 17045
FlxqE_Miller 19268
_can5_invd 20517
_can5_iter 20517
_teich_invd 20517
_teich_iter 20517
ZpXQ_norm_sqr 22715
Flxq_elltwist 22834
nonsquare_Flxq 22834
_lift_lin 23744
Flxq_ellcard_Kohel 25011
fill_pols 25011
get_Kohel_polynomials 25011
getc2 25011
get_norm 25032
lift_isogeny 25032
FlxqE_Miller_line 28163
_teich_invl 29470
_can5_invl 29484
Flx_next 31962
Flx_renormalize_ip 31962
zx_is_pcyc 32269
ZpXQ_norm_mul 32823
_can5_sqr 41125
_can5_mul 41293
FlxqE_Miller_dbl 47242
FlxqE_tangent_update 47242
Flxq_ellcard 50070
Flxq_ellj 51421
_lift_invd 60291
_lift_iter 60291
_shift 61810
FlxqE_changepointinv 63938
RgE_to_FlxqE 63938
FlxqE_mul 64467
_FlxqE_rand 69019
FlxqE_vert 70772
RgX_circular_shallow 76258
ZpXQ_frob_cyc 76258
random_F3xqE 77385
_lift_invl 84035
ZpXQ_frob 113547
FpXC_powderiv 120582
random_FlxqE 144143
FlxqE_changepoint 154181
FpM_FpXQV_bilinear 180873
FpM_FpXV_bilinear 180873
_FlxqE_mul 219353
_FlxqE_add 526543
FlxqE_add 532700
FlxqE_add_slope 536542
FlxqE_dbl 1276824
_FlxqE_dbl 1276824
FlxqE_dbl_slope 1303460

Generated by: LCOV version 1.13