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 18906-a425091) Lines: 907 946 95.9 %
Date: 2016-05-06 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 16079
F3xq_ellcard_naive 1274
F3xq_ellcardj 6027
Flx_canonlift 13832
Flx_next 30317
Flx_renormalize_ip 30317
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 62243
Flxq_ellcard_Harley 14
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 24906
Flxq_ellcard_Satoh 10780
Flxq_ellcard_Shanks 12600
Flxq_ellcard_naive 665
Flxq_ellcardj 14084
Flxq_ellgens 13153
Flxq_ellgroup 14385
Flxq_ellj 62411
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 12761
Flxq_elltwist 22834
Flxq_kronecker 25332
FpM_FpXQV_bilinear 180096
FpM_FpXV_bilinear 180096
FpXC_powderiv 120064
RgE_to_FlxqE 63854
RgX_circular_shallow 76118
Teichmuller_lift 10115
ZpXQX_liftrootmod_vald 14
ZpXQ_frob 112588
ZpXQ_frob_cyc 76118
ZpXQ_norm_mul 32774
ZpXQ_norm_pcyc 11326
ZpXQ_norm_sqr 22680
ZpXQ_sqrtnorm 13832
ZpXQ_sqrtnorm_pcyc 11088
_FlxqE_add 861627
_FlxqE_dbl 2182209
_FlxqE_mul 320189
_FlxqE_pairorder 12208
_FlxqE_rand 65983
_can5_invd 20300
_can5_invl 29050
_can5_iter 20300
_can5_lin 8750
_can5_mul 40831
_can5_sqr 40691
_can_invd 7476
_can_invl 11130
_can_iter 7476
_can_lin 3654
_lift_invd 60032
_lift_invl 83524
_lift_iter 60032
_lift_lin 23492
_shift 61131
_teich_invd 20300
_teich_invl 29036
_teich_iter 20300
_teich_lin 8736
closest_lift 25361
fill_pols 24906
get_FlxqE_group 34
get_H1 14
get_Kohel_polynomials 24906
get_norm 24920
getc2 24906
getc5 14
lift_isogeny 24920
liftcurve 14
nonsquare_Fl 7686
nonsquare_Flxq 22834
random_F3xqE 76048
random_FlxqE 141093
zx_is_pcyc 32065

Generated by: LCOV version 1.9