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 19207-2ed2f69) Lines: 906 946 95.8 %
Date: 2016-07-25 07:10:32 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 16324
F3xq_ellcard_naive 1519
F3xq_ellcardj 6027
Flx_canonlift 13902
Flx_next 38479
Flx_renormalize_ip 38479
FlxqE_Miller 18658
FlxqE_Miller_add 4110
FlxqE_Miller_dbl 46534
FlxqE_Miller_line 28090
FlxqE_add 2467090
FlxqE_add_slope 2493978
FlxqE_changepoint 152915
FlxqE_changepointinv 63854
FlxqE_chord_update 4110
FlxqE_dbl 3230834
FlxqE_dbl_slope 3280223
FlxqE_find_order 24920
FlxqE_log 42
FlxqE_mul 135877
FlxqE_neg 399
FlxqE_neg_i 24171
FlxqE_order 26348
FlxqE_sub 24171
FlxqE_tangent_update 46534
FlxqE_tatepairing 56
FlxqE_vert 69400
FlxqE_weilpairing 12228
Flxq_ellcard 91013
Flxq_ellcard_Harley 14
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 24976
Flxq_ellcard_Satoh 10927
Flxq_ellcard_Shanks 24640
Flxq_ellcard_naive 742
Flxq_ellcardj 32858
Flxq_ellgens 13153
Flxq_ellgroup 14385
Flxq_ellj 93442
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 24920
Flxq_elltwist 22834
Flxq_kronecker 49348
FpM_FpXQV_bilinear 180516
FpM_FpXV_bilinear 180516
FpXC_powderiv 120344
RgE_to_FlxqE 63854
RgX_circular_shallow 76118
Teichmuller_lift 10185
ZpXQX_liftrootmod_vald 14
ZpXQ_frob 113008
ZpXQ_frob_cyc 76118
ZpXQ_norm_mul 32774
ZpXQ_norm_pcyc 11326
ZpXQ_norm_sqr 22680
ZpXQ_sqrtnorm 13902
ZpXQ_sqrtnorm_pcyc 11088
_FlxqE_add 1241236
_FlxqE_dbl 3230834
_FlxqE_mul 428284
_FlxqE_pairorder 12214
_FlxqE_rand 66019
_can5_invd 20440
_can5_invl 29260
_can5_iter 20440
_can5_lin 8820
_can5_mul 41111
_can5_sqr 40971
_can_invd 7476
_can_invl 11130
_can_iter 7476
_can_lin 3654
_lift_invd 60172
_lift_invl 83734
_lift_iter 60172
_lift_lin 23562
_shift 61551
_teich_invd 20440
_teich_invl 29246
_teich_iter 20440
_teich_lin 8806
closest_lift 49560
fill_pols 24976
get_FlxqE_group 34
get_H1 14
get_Kohel_polynomials 24976
get_norm 24990
getc2 24976
getc5 14
lift_isogeny 24990
liftcurve 14
nonsquare_Fl 7686
nonsquare_Flxq 22834
random_F3xqE 76048
random_FlxqE 141129
zx_is_pcyc 32139

Generated by: LCOV version 1.11