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 16358-a11f489) Lines: 749 769 97.4 %
Date: 2014-04-11 Functions: 85 86 98.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 266 328 81.1 %

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 1335
F3xq_ellcard 6005
F3xq_ellcard_naive 710
F3xq_ellcardj 2270
Flx_canonlift 4950
Flx_next 7760
Flx_renormalize_ip 7760
FlxqE_Miller 11903
FlxqE_Miller_add 2787
FlxqE_Miller_dbl 31035
FlxqE_add 360359
FlxqE_add_slope 362189
FlxqE_changepoint 109165
FlxqE_changepointinv 45435
FlxqE_chord_update 2787
FlxqE_dbl 863682
FlxqE_dbl_slope 882123
FlxqE_find_order 15
FlxqE_log 30
FlxqE_mul 44440
FlxqE_neg 135
FlxqE_neg_i 25
FlxqE_order 990
FlxqE_sub 25
FlxqE_tangent_update 31039
FlxqE_tatepairing 0
FlxqE_vert 45819
FlxqE_weilpairing 8826
Flxq_ellcard 17235
Flxq_ellcard_Harley 8910
Flxq_ellcard_Satoh 3815
Flxq_ellcard_Shanks 15
Flxq_ellcard_naive 200
Flxq_ellcardj 5010
Flxq_ellgens 9385
Flxq_ellgroup 10230
Flxq_ellj 21475
Flxq_ellpoint 15
Flxq_kronecker 27
FpM_FpXQV_bilinear 64440
FpM_FpXV_bilinear 64440
FpXC_powderiv 42960
RgE_to_FlxqE 45435
RgX_circular_shallow 27220
Teichmuller_lift 3615
ZpXQ_frob 40480
ZpXQ_frob_cyc 27220
ZpXQ_norm_mul 11740
ZpXQ_norm_pcyc 4055
ZpXQ_norm_sqr 8130
ZpXQ_sqrtnorm 4950
ZpXQ_sqrtnorm_pcyc 3960
_FlxqE_add 359479
_FlxqE_dbl 863682
_FlxqE_mul 150194
_FlxqE_pairorder 8826
_FlxqE_rand 47352
_can5_invd 7260
_can5_invl 10445
_can5_iter 7260
_can5_lin 3185
_can5_mul 14605
_can5_sqr 14545
_can_invd 2700
_can_invl 4110
_can_iter 2700
_can_lin 1410
_lift_invd 21480
_lift_invl 30035
_lift_iter 21480
_lift_lin 8555
_shift 21865
_teich_invd 7260
_teich_invl 10445
_teich_iter 7260
_teich_lin 3185
closest_lift 30
fill_pols 8910
get_FlxqE_group 10
get_Kohel_polynomials 8910
get_norm 8910
getc2 8910
lift_isogeny 8910
random_F3xqE 54019
random_FlxqE 100982
zx_is_pcyc 11400

Generated by: LCOV version 1.9