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 - FpE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 19825-b77c7f8) Lines: 911 997 91.4 %
Date: 2016-12-06 05:49:02 Functions: 97 105 92.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_ellcard_Shanks 410060
Fl_ellpoint 7021
Fl_elltrace 410775
Fl_elltrace_CM 442361
Fl_elltrace_naive 208666
Fle_add_inplace 10097820
Fle_dbl_inplace 374942
FpE_Miller 15481
FpE_Miller_add 4753
FpE_Miller_dbl 35571
FpE_Miller_line 20159
FpE_add 1278238
FpE_add_ip 305362
FpE_add_slope 1280826
FpE_changepoint 1109
FpE_changepointinv 2177
FpE_chord_update 4753
FpE_dbl 2004451
FpE_dbl_slope 2022964
FpE_log 42
FpE_mul 687
FpE_neg 372582
FpE_neg_i 0
FpE_order 819
FpE_sub 0
FpE_tangent_update 35571
FpE_tatepairing 203
FpE_to_mod 437
FpE_vert 56323
FpE_weilpairing 10660
FpXQE_Miller 77
FpXQE_Miller_add 833
FpXQE_Miller_dbl 5026
FpXQE_Miller_line 5761
FpXQE_add 34715
FpXQE_add_slope 35527
FpXQE_changepoint 1715
FpXQE_changepointinv 896
FpXQE_chord_update 833
FpXQE_dbl 181188
FpXQE_dbl_slope 186144
FpXQE_log 0
FpXQE_mul 854
FpXQE_neg 749
FpXQE_neg_i 0
FpXQE_order 14
FpXQE_sub 0
FpXQE_tangent_update 5026
FpXQE_tatepairing 7
FpXQE_vert 5936
FpXQE_weilpairing 35
FpXQ_ellcard 3662
FpXQ_ellcardj 1687
FpXQ_ellgens 7
FpXQ_ellgroup 14
FpXQ_ellj 1695
FpXQ_elljissupersingular 164227
FpXQ_elltwist 840
Fp_ellcard 2840299
Fp_ellcard_CM 2724421
Fp_ellcard_Shanks 77
Fp_ellgens 574
Fp_ellgroup 21525
Fp_ellj 0
Fp_ellj_get_CM 73836
Fp_ellj_nodiv 72898
Fp_elljissupersingular 1050
Fp_ellpoint 0
Fp_elltwist 0
Fp_ffellcard 13083
FqX_quad_root 5691
RgE_to_FpE 1282
RgE_to_FpXQE 896
_FpE_add 1259162
_FpE_dbl 2005032
_FpE_mul 488015
_FpE_pairorder 10415
_FpE_rand 29001
_FpXQE_add 34715
_FpXQE_dbl 181188
_FpXQE_mul 2825
_FpXQE_pairorder 28
_FpXQE_rand 131
_fix 18872
ap_cm 1547
ap_j0 43386
ap_j1728 2617825
ap_j287496 161
ap_j8000 140
closest_lift 410200
compare_multiples 21609093
ec_ap_cm 11522
elltrace_extension 13678
get_FpE_group 840
get_FpXQE_group 8
get_table_size 77
is_CMj 927675
jissupersingular 13860
nonsquare_Fp 420
nonsquare_FpXQ 840
path_extends_to_floor 2583
random_FpE 29029
random_FpXQE 985
u2_is_CMj 20538
uclosest_lift 417067

Generated by: LCOV version 1.11