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 20777-d2a9243) Lines: 970 1068 90.8 %
Date: 2017-06-25 05:59:24 Functions: 103 114 90.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_ellcard_Shanks 195188
Fl_ellpoint 3850
Fl_elltrace 244217
Fl_elltrace_CM 276111
Fl_elltrace_naive 190683
Fle_add_inplace 5055776
Fle_dbl_inplace 176016
FpE_Miller 14905
FpE_Miller_add 5327
FpE_Miller_dbl 32505
FpE_Miller_line 18586
FpE_add 942070
FpE_add_ip 305362
FpE_add_slope 945066
FpE_changepoint 1713
FpE_changepointinv 2791
FpE_chord_update 5327
FpE_dbl 37013
FpE_dbl_slope 53099
FpE_log 42
FpE_mul 1299
FpE_neg 372582
FpE_neg_i 0
FpE_order 819
FpE_sub 0
FpE_tangent_update 32505
FpE_tatepairing 203
FpE_to_FpJ 52294
FpE_to_mod 1041
FpE_vert 53297
FpE_weilpairing 10564
FpJ_add 681402
FpJ_dbl 4796316
FpJ_mul 0
FpJ_neg 0
FpJ_to_FpE 52265
FpXQE_Miller 77
FpXQE_Miller_add 833
FpXQE_Miller_dbl 5026
FpXQE_Miller_line 5761
FpXQE_add 34671
FpXQE_add_slope 35483
FpXQE_changepoint 1715
FpXQE_changepointinv 896
FpXQE_chord_update 833
FpXQE_dbl 180239
FpXQE_dbl_slope 185195
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 36
FpXQ_ellcard 3158
FpXQ_ellcardj 1687
FpXQ_ellgens 7
FpXQ_ellgroup 14
FpXQ_ellj 1695
FpXQ_elljissupersingular 164227
FpXQ_elltwist 840
Fp_ellcard 2773330
Fp_ellcard_CM 2676996
Fp_ellcard_Shanks 77
Fp_ellgens 574
Fp_ellgroup 21665
Fp_ellj 0
Fp_ellj_get_CM 26411
Fp_ellj_nodiv 25473
Fp_elljissupersingular 1050
Fp_ellpoint 0
Fp_elltwist 0
Fp_ffellcard 12922
FqX_quad_root 5691
RgE_to_FpE 1894
RgE_to_FpXQE 896
_FpE_add 923048
_FpE_dbl 37013
_FpE_mul 486788
_FpE_pairorder 10319
_FpE_rand 28775
_FpJ_add 681260
_FpJ_dbl 4795315
_FpJ_mul 0
_FpXQE_add 34671
_FpXQE_dbl 180239
_FpXQE_mul 2814
_FpXQE_pairorder 29
_FpXQE_rand 124
_fix 18872
ap_cm 1211
ap_j0 43386
ap_j1728 2617825
ap_j287496 147
ap_j8000 126
closest_lift 195328
compare_multiples 14396804
ec_ap_cm 11158
elltrace_extension 13503
get_FpE_group 840
get_FpXQE_group 8
get_table_size 77
is_CMj 326460
jissupersingular 13860
nonsquare_Fp 420
nonsquare_FpXQ 840
path_extends_to_floor 2583
random_FpE 28803
random_FpXQE 978
u2_is_CMj 7090
uclosest_lift 199024

Generated by: LCOV version 1.11