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.8.0 lcov report (development 19628-9774e23) Lines: 906 946 95.8 %
Date: 2016-10-01 05:54:29 Functions: 96 97 99.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 3717
F3xq_ellcard 16352
F3xq_ellcard_naive 1547
F3xq_ellcardj 6020
Flx_canonlift 13930
Flx_next 33145
Flx_renormalize_ip 33145
FlxqE_Miller 18792
FlxqE_Miller_add 4196
FlxqE_Miller_dbl 47132
FlxqE_Miller_line 28553
FlxqE_add 528676
FlxqE_add_slope 532454
FlxqE_changepoint 152915
FlxqE_changepointinv 63854
FlxqE_chord_update 4196
FlxqE_dbl 1255087
FlxqE_dbl_slope 1282172
FlxqE_find_order 1043
FlxqE_log 42
FlxqE_mul 64848
FlxqE_neg 399
FlxqE_neg_i 987
FlxqE_order 2471
FlxqE_sub 987
FlxqE_tangent_update 47132
FlxqE_tatepairing 56
FlxqE_vert 70230
FlxqE_weilpairing 12281
Flxq_ellcard 49279
Flxq_ellcard_Harley 14
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 25004
Flxq_ellcard_Satoh 10913
Flxq_ellcard_Shanks 945
Flxq_ellcard_naive 700
Flxq_ellcardj 14805
Flxq_ellgens 13153
Flxq_ellgroup 14378
Flxq_ellj 51708
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 1043
Flxq_elltwist 22834
Flxq_kronecker 1871
FpM_FpXQV_bilinear 180684
FpM_FpXV_bilinear 180684
FpXC_powderiv 120456
RgE_to_FlxqE 63854
RgX_circular_shallow 76118
Teichmuller_lift 10213
ZpXQX_liftrootmod_vald 14
ZpXQ_frob 113120
ZpXQ_frob_cyc 76118
ZpXQ_norm_mul 32774
ZpXQ_norm_pcyc 11326
ZpXQ_norm_sqr 22680
ZpXQ_sqrtnorm 13930
ZpXQ_sqrtnorm_pcyc 11088
_FlxqE_add 521116
_FlxqE_dbl 1255087
_FlxqE_mul 216276
_FlxqE_pairorder 12267
_FlxqE_rand 66146
_can5_invd 20496
_can5_invl 29316
_can5_iter 20496
_can5_lin 8820
_can5_mul 41279
_can5_sqr 41083
_can_invd 7476
_can_invl 11130
_can_iter 7476
_can_lin 3654
_lift_invd 60228
_lift_invl 83790
_lift_iter 60228
_lift_lin 23562
_shift 61775
_teich_invd 20496
_teich_invl 29302
_teich_iter 20496
_teich_lin 8806
closest_lift 1988
fill_pols 25004
get_FlxqE_group 34
get_H1 14
get_Kohel_polynomials 25004
get_norm 25018
getc2 25004
getc5 14
lift_isogeny 25018
liftcurve 14
nonsquare_Fl 7686
nonsquare_Flxq 22834
random_F3xqE 76076
random_FlxqE 141256
zx_is_pcyc 32169

Generated by: LCOV version 1.11