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 - FpE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17910-ca0bb25) Lines: 939 1024 91.7 %
Date: 2015-07-07 Functions: 103 113 91.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 453 555 81.6 %

Function Name Sort by function name Hit count Sort by hit count
Fl_ellcard_Shanks 104506
Fl_ellcard_naive 42850
Fl_ellpoint 3472
Fl_elltrace 109034
Fl_elltrace_CM 137288
Fle_add_inplace 3408782
Fle_dbl_inplace 92210
FpE_Miller 15380
FpE_Miller_add 4928
FpE_Miller_dbl 34370
FpE_add 1259685
FpE_add_ip 305362
FpE_add_slope 1262642
FpE_changepoint 1106
FpE_changepointinv 2142
FpE_chord_update 4928
FpE_dbl 1973339
FpE_dbl_slope 1989108
FpE_log 42
FpE_mul 682
FpE_neg 366975
FpE_neg_i 0
FpE_order 819
FpE_sub 0
FpE_tangent_update 34370
FpE_tatepairing 196
FpE_to_mod 433
FpE_vert 55140
FpE_weilpairing 11232
FpXQE_Miller 70
FpXQE_Miller_add 630
FpXQE_Miller_dbl 4620
FpXQE_add 37495
FpXQE_add_slope 38118
FpXQE_changepoint 1715
FpXQE_changepointinv 868
FpXQE_chord_update 630
FpXQE_dbl 191869
FpXQE_dbl_slope 196398
FpXQE_log 0
FpXQE_mul 854
FpXQE_neg 749
FpXQE_neg_i 0
FpXQE_order 14
FpXQE_sub 0
FpXQE_tangent_update 4620
FpXQE_tatepairing 0
FpXQE_vert 5320
FpXQE_weilpairing 37
FpXQ_ellcard 1695
FpXQ_ellcardj 1680
FpXQ_elldivpol 28
FpXQ_ellgens 7
FpXQ_ellgroup 14
FpXQ_ellj 1688
FpXQ_elljissupersingular 164199
FpXQ_elltwist 840
Fp_ellcard 2697212
Fp_ellcard_CM 2665558
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 574
Fp_ellgroup 21532
Fp_ellj 0
Fp_ellj_get_CM 3276
Fp_ellj_nodiv 2401
Fp_elljissupersingular 952
Fp_ellpoint 0
Fp_elltwist 0
Fp_ffellcard 12222
FqX_quad_root 5565
Fq_elldivpolmod 9758
Mod16 3949176
RgE_to_FpE 1271
RgE_to_FpXQE 868
_FpE_add 1240655
_FpE_dbl 1974356
_FpE_mul 483244
_FpE_pairorder 10994
_FpE_rand 29628
_FpXQE_add 37495
_FpXQE_dbl 191869
_FpXQE_mul 3134
_FpXQE_pairorder 37
_FpXQE_rand 144
_fix 18872
_red 26586
_rmul 96054
_rsqr 35315
ap_cm 1006
ap_j0 49812
ap_j1728 2635220
ap_j287496 112
ap_j8000 112
closest_lift 104646
compare_multiples 12416283
divpol 97069
divpol_f2 57890
divpol_ff 57890
ec_ap_cm 23091
elltrace_extension 12789
get_FpE_group 833
get_FpXQE_group 7
get_table_size 77
is_CMj 39141
jissupersingular 13783
nonsquare_Fp 420
nonsquare_FpXQ 840
path_extends_to_floor 2541
random_FpE 29656
random_FpXQE 998
u2_is_CMj 836
uclosest_lift 107964

Generated by: LCOV version 1.9