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 16962-5a32637) Lines: 977 1108 88.2 %
Date: 2014-10-29 Functions: 111 130 85.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 460 589 78.1 %

Function Name Sort by function name Hit count Sort by hit count
Fl_ellcard_Shanks 105073
Fl_ellcard_naive 36464
Fl_ellj 0
Fl_ellj_to_a4a6 0
Fl_ellpoint 3598
Fl_elltrace 110868
Fl_elltrace_CM 133837
Fl_elltwist 0
Fle_add 1757023
Fle_add_inplace 3410336
Fle_add_slope 1757023
Fle_changepoint 0
Fle_changepointinv 259
Fle_dbl 4763852
Fle_dbl_inplace 92574
Fle_dbl_slope 4764371
Fle_mul 0
Fle_mulu 313403
Fle_neg 0
Fle_order 108657
Fle_sub 0
FpE_Miller 7931
FpE_Miller_add 1757
FpE_Miller_dbl 15722
FpE_add 1048140
FpE_add_ip 305362
FpE_add_slope 1049253
FpE_changepoint 791
FpE_changepointinv 1799
FpE_chord_update 1757
FpE_dbl 394619
FpE_dbl_slope 401688
FpE_log 42
FpE_mul 342
FpE_neg 363944
FpE_neg_i 0
FpE_order 812
FpE_sub 0
FpE_tangent_update 15722
FpE_tatepairing 196
FpE_to_mod 126
FpE_vert 25578
FpE_weilpairing 6372
FpXQE_Miller 70
FpXQE_Miller_add 630
FpXQE_Miller_dbl 4620
FpXQE_add 37697
FpXQE_add_slope 38320
FpXQE_changepoint 1715
FpXQE_changepointinv 868
FpXQE_chord_update 630
FpXQE_dbl 192776
FpXQE_dbl_slope 197305
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 35
FpXQ_ellcard 855
FpXQ_ellcardj 840
FpXQ_elldivpol 0
FpXQ_ellgens 7
FpXQ_ellgroup 14
FpXQ_ellj 848
FpXQ_elljissupersingular 164199
Fp_ellcard 2694088
Fp_ellcard_CM 2668183
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 567
Fp_ellgroup 19208
Fp_ellj 0
Fp_ellj_get_CM 2394
Fp_ellj_nodiv 1652
Fp_elljissupersingular 742
Fp_ellpoint 0
Fp_ffellcard 6081
FqX_quad_root 5495
Fq_elldivpolmod 6167
Mod16 3948756
RgE_to_FpE 931
RgE_to_FpXQE 868
_Fle_add 1754853
_Fle_dbl 4673356
_Fle_mul 416506
_Fle_mulu 313403
_Fle_rand 0
_FpE_add 1029118
_FpE_dbl 394619
_FpE_mul 445505
_FpE_pairorder 6134
_FpE_rand 19364
_FpXQE_add 37697
_FpXQE_dbl 192776
_FpXQE_mul 3152
_FpXQE_pairorder 35
_FpXQE_rand 151
_fix 18872
_red 16828
_rmul 70924
_rsqr 24759
ap_cm 971
ap_j0 49588
ap_j1728 2634975
ap_j287496 112
ap_j8000 112
closest_lift 105213
compare_multiples 12416675
divpol 69545
divpol_f2 42784
divpol_ff 42784
ec_ap_cm 19213
elltrace_extension 6368
get_FpE_group 546
get_FpXQE_group 7
get_table_size 77
is_CMj 28782
jissupersingular 13734
modpoly2 13734
path_extends_to_floor 2506
random_Fle 0
random_FpE 19392
random_FpXQE 1005
u2_is_CMj 618
uclosest_lift 108657

Generated by: LCOV version 1.9