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 21921-ca7d0c8) Lines: 980 1068 91.8 %
Date: 2018-02-20 06:16:13 Functions: 105 114 92.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpE_neg_i 0
FpE_sub 0
FpJ_neg 0
FpXQE_log 0
FpXQE_neg_i 0
FpXQE_sub 0
Fp_ellj 0
Fp_ellpoint 0
Fp_elltwist 0
FpXQE_tatepairing 7
FpXQ_ellgens 7
get_FpXQE_group 8
FpXQE_order 14
FpXQ_ellgroup 14
_FpXQE_pairorder 28
FpXQE_weilpairing 35
FpE_log 42
FpXQE_Miller 77
Fp_ellcard_Shanks 77
get_table_size 77
_FpXQE_rand 124
ap_j8000 126
ap_j287496 147
FpE_tatepairing 203
nonsquare_Fp 420
Fp_ellgens 581
FpE_order 735
FpXQE_neg 749
FpXQE_Miller_add 833
FpXQE_chord_update 833
FpXQ_elltwist 840
nonsquare_FpXQ 840
FpXQE_mul 854
get_FpE_group 861
FpXQE_changepointinv 896
RgE_to_FpXQE 896
random_FpXQE 978
FpE_to_mod 1043
Fp_elljissupersingular 1057
FpE_mul 1298
ap_cm 1337
FpXQ_ellcardj 1687
FpXQ_ellj 1695
FpXQE_changepoint 1715
FpE_changepoint 1722
RgE_to_FpE 1811
path_extends_to_floor 2590
FpE_changepointinv 2707
_FpXQE_mul 2807
FpXQ_ellcard 3445
FpJ_mul 3672
_FpJ_mul 3672
FpXQE_Miller_dbl 5026
FpXQE_tangent_update 5026
FpE_Miller_add 5271
FpE_chord_update 5271
Fl_ellpoint 5320
FqX_quad_root 5684
FpXQE_Miller_line 5761
FpXQE_vert 5936
_FpE_pairorder 10270
FpE_weilpairing 10515
u2_is_CMj 10609
ec_ap_cm 11284
Fp_ffellcard 13069
elltrace_extension 13650
jissupersingular 13860
FpE_Miller 14789
FpE_Miller_line 18738
_fix 18872
Fp_ellgroup 21602
_FpE_rand 28788
random_FpE 30344
FpE_Miller_dbl 32457
FpE_tangent_update 32457
FpXQE_add 34631
_FpXQE_add 34631
FpXQE_add_slope 35443
FpE_dbl 36854
_FpE_dbl 36854
Fp_ellj_nodiv 37905
Fp_ellj_get_CM 38843
ap_j0 43393
FpE_vert 53105
FpE_dbl_slope 53190
FpJ_to_FpE 53575
FpE_to_FpJ 54725
FpXQ_elljissupersingular 164227
FpXQE_dbl 180274
_FpXQE_dbl 180274
FpXQE_dbl_slope 185230
Fle_dbl_inplace 190709
Fl_ellcard_Shanks 212352
closest_lift 212492
uclosest_lift 217658
Fl_elltrace_naive 226256
Fl_elltrace 269808
Fl_elltrace_CM 303012
FpE_add_ip 305362
FpE_neg 374437
is_CMj 483899
_FpE_mul 488818
_FpJ_add 894866
FpJ_add 895006
_FpE_add 928158
FpE_add 947180
FpE_add_slope 950099
ap_j1728 2617804
Fp_ellcard_CM 2689414
Fp_ellcard 2799167
Fle_add_inplace 5186788
_FpJ_dbl 5867836
FpJ_dbl 5868998
compare_multiples 14483807

Generated by: LCOV version 1.11