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 16804-345a01c) Lines: 753 782 96.3 %
Date: 2014-09-20 Functions: 86 87 98.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 263 332 79.2 %

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 1869
F3xq_ellcard 8407
F3xq_ellcard_naive 994
F3xq_ellcardj 3213
Flx_canonlift 6930
Flx_next 10864
Flx_renormalize_ip 10864
FlxqE_Miller 17055
FlxqE_Miller_add 4345
FlxqE_Miller_dbl 45040
FlxqE_add 512305
FlxqE_add_slope 515267
FlxqE_changepoint 152866
FlxqE_changepointinv 63672
FlxqE_chord_update 4345
FlxqE_dbl 1233876
FlxqE_dbl_slope 1260582
FlxqE_find_order 7
FlxqE_log 42
FlxqE_mul 62195
FlxqE_neg 189
FlxqE_neg_i 7
FlxqE_order 1421
FlxqE_sub 7
FlxqE_tangent_update 45040
FlxqE_tatepairing 0
FlxqE_vert 66616
FlxqE_weilpairing 12474
Flxq_ellcard 24171
Flxq_ellcard_Harley 12474
Flxq_ellcard_Kedlaya 21
Flxq_ellcard_Satoh 5341
Flxq_ellcard_Shanks 7
Flxq_ellcard_naive 280
Flxq_ellcardj 7014
Flxq_ellgens 13146
Flxq_ellgroup 14364
Flxq_ellj 30072
Flxq_ellpoint 7
Flxq_kronecker 28
FpM_FpXQV_bilinear 90216
FpM_FpXV_bilinear 90216
FpXC_powderiv 60144
RgE_to_FlxqE 63672
RgX_circular_shallow 38108
Teichmuller_lift 5061
ZpXQ_frob 56672
ZpXQ_frob_cyc 38108
ZpXQ_norm_mul 16436
ZpXQ_norm_pcyc 5677
ZpXQ_norm_sqr 11382
ZpXQ_sqrtnorm 6930
ZpXQ_sqrtnorm_pcyc 5544
_FlxqE_add 511150
_FlxqE_dbl 1233876
_FlxqE_mul 210852
_FlxqE_pairorder 12474
_FlxqE_rand 66969
_can5_invd 10164
_can5_invl 14623
_can5_iter 10164
_can5_lin 4459
_can5_mul 20447
_can5_sqr 20363
_can_invd 3780
_can_invl 5754
_can_iter 3780
_can_lin 1974
_lift_invd 30072
_lift_invl 42049
_lift_iter 30072
_lift_lin 11977
_shift 30611
_teich_invd 10164
_teich_invl 14623
_teich_iter 10164
_teich_lin 4459
closest_lift 14
fill_pols 12474
get_FlxqE_group 14
get_Kohel_polynomials 12474
get_norm 12474
getc2 12474
lift_isogeny 12474
random_F3xqE 76278
random_FlxqE 142058
zx_is_pcyc 15967

Generated by: LCOV version 1.9