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.10.0 lcov report (development 20422-b487f4d) Lines: 916 944 97.0 %
Date: 2017-03-22 05:51:54 Functions: 96 97 99.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3x_canonlift 3717
F3xq_ellcard 16352
F3xq_ellcard_naive 1547
F3xq_ellcardj 6027
Flx_canonlift 13944
Flx_next 33145
Flx_renormalize_ip 33145
FlxqE_Miller 18722
FlxqE_Miller_add 4164
FlxqE_Miller_dbl 46778
FlxqE_Miller_line 28327
FlxqE_add 524933
FlxqE_add_slope 528713
FlxqE_changepoint 152992
FlxqE_changepointinv 63938
FlxqE_chord_update 4164
FlxqE_dbl 1239549
FlxqE_dbl_slope 1266434
FlxqE_find_order 1001
FlxqE_log 49
FlxqE_mul 64785
FlxqE_neg 434
FlxqE_neg_i 1015
FlxqE_order 2457
FlxqE_sub 1015
FlxqE_tangent_update 46778
FlxqE_tatepairing 56
FlxqE_vert 69774
FlxqE_weilpairing 12290
Flxq_ellcard 49272
Flxq_ellcard_Harley 21
Flxq_ellcard_Kedlaya 0
Flxq_ellcard_Kohel 25025
Flxq_ellcard_Satoh 10941
Flxq_ellcard_Shanks 917
Flxq_ellcard_naive 700
Flxq_ellcardj 14791
Flxq_ellgens 13167
Flxq_ellgroup 14399
Flxq_ellj 51722
Flxq_ellj_to_a4a6 280
Flxq_ellpoint 1001
Flxq_elltwist 22834
Flxq_kronecker 1949
FpM_FpXQV_bilinear 180957
FpM_FpXV_bilinear 180957
FpXC_powderiv 120638
RgE_to_FlxqE 63938
RgX_circular_shallow 76258
Teichmuller_lift 10227
ZpXQX_liftrootmod_vald 21
ZpXQ_frob 113603
ZpXQ_frob_cyc 76258
ZpXQ_norm_mul 32823
ZpXQ_norm_pcyc 11340
ZpXQ_norm_sqr 22715
ZpXQ_sqrtnorm 13944
ZpXQ_sqrtnorm_pcyc 11102
_FlxqE_add 517702
_FlxqE_dbl 1239549
_FlxqE_mul 215435
_FlxqE_pairorder 12276
_FlxqE_rand 66079
_can5_invd 20545
_can5_invl 29512
_can5_iter 20545
_can5_lin 8967
_can5_mul 41377
_can5_sqr 41181
_can_invd 7476
_can_invl 11130
_can_iter 7476
_can_lin 3654
_lift_invd 60319
_lift_invl 84063
_lift_iter 60319
_lift_lin 23744
_shift 61922
_teich_invd 20545
_teich_invl 29498
_teich_iter 20545
_teich_lin 8953
closest_lift 1918
fill_pols 25025
get_FlxqE_group 34
get_H1 21
get_Kohel_polynomials 25025
get_norm 25046
getc2 25025
getc5 21
lift_isogeny 25046
liftcurve 21
nonsquare_Fl 7686
nonsquare_Flxq 22834
random_F3xqE 76076
random_FlxqE 141203
zx_is_pcyc 32190

Generated by: LCOV version 1.11