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 19070-36a960b) Lines: 907 946 95.9 %
Date: 2016-06-30 Functions: 96 97 99.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 334 422 79.1 %

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 3717
F3xq_ellcard 16107
F3xq_ellcard_naive 1302
F3xq_ellcardj 6027
Flx_canonlift 13902
Flx_next 30401
Flx_renormalize_ip 30401
FlxqE_Miller 18658
FlxqE_Miller_add 4110
FlxqE_Miller_dbl 46546
FlxqE_Miller_line 28078
FlxqE_add 1396147
FlxqE_add_slope 1411220
FlxqE_changepoint 152915
FlxqE_changepointinv 63854
FlxqE_chord_update 4110
FlxqE_dbl 2182209
FlxqE_dbl_slope 2220041
FlxqE_find_order 12761
FlxqE_log 42
FlxqE_mul 99848
FlxqE_neg 399
FlxqE_neg_i 12362
FlxqE_order 14189
FlxqE_sub 12362
FlxqE_tangent_update 46546
FlxqE_tatepairing 56
FlxqE_vert 69424
FlxqE_weilpairing 12222
Flxq_ellcard 64658
Flxq_ellcard_Harley 14
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 24976
Flxq_ellcard_Satoh 10850
Flxq_ellcard_Shanks 12600
Flxq_ellcard_naive 665
Flxq_ellcardj 16401
Flxq_ellgens 13153
Flxq_ellgroup 14385
Flxq_ellj 64868
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 12761
Flxq_elltwist 22834
Flxq_kronecker 25332
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 861627
_FlxqE_dbl 2182209
_FlxqE_mul 320189
_FlxqE_pairorder 12208
_FlxqE_rand 65983
_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 25361
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 141093
zx_is_pcyc 32141

Generated by: LCOV version 1.9