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-bordeaux1.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 17909-2b849a1) Lines: 878 930 94.4 %
Date: 2015-07-06 Functions: 94 96 97.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 309 414 74.6 %

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 3717
F3xq_ellcard 16009
F3xq_ellcard_naive 1204
F3xq_ellcardj 6027
Flx_canonlift 13832
Flx_next 20181
Flx_renormalize_ip 20181
FlxqE_Miller 16647
FlxqE_Miller_add 4261
FlxqE_Miller_dbl 43994
FlxqE_add 507070
FlxqE_add_slope 509776
FlxqE_changepoint 152887
FlxqE_changepointinv 63700
FlxqE_chord_update 4261
FlxqE_dbl 1219882
FlxqE_dbl_slope 1245862
FlxqE_find_order 14
FlxqE_log 42
FlxqE_mul 62230
FlxqE_neg 322
FlxqE_neg_i 14
FlxqE_order 1442
FlxqE_sub 14
FlxqE_tangent_update 44001
FlxqE_tatepairing 0
FlxqE_vert 65112
FlxqE_weilpairing 12011
Flxq_ellcard 47039
Flxq_ellcard_Harley 14
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 24906
Flxq_ellcard_Satoh 10682
Flxq_ellcard_Shanks 14
Flxq_ellcard_naive 567
Flxq_ellcardj 14063
Flxq_ellgens 13153
Flxq_ellgroup 14385
Flxq_ellj 49706
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 14
Flxq_elltwist 22834
Flxq_kronecker 27
FpM_FpXQV_bilinear 180096
FpM_FpXV_bilinear 180096
FpXC_powderiv 120064
RgE_to_FlxqE 63700
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 505859
_FlxqE_dbl 1219882
_FlxqE_mul 211259
_FlxqE_pairorder 12011
_FlxqE_rand 66313
_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 28
fill_pols 24906
get_FlxqE_group 21
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 75596
random_FlxqE 141409
zx_is_pcyc 32070

Generated by: LCOV version 1.9