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 16912-212c0f0) Lines: 895 1010 88.6 %
Date: 2014-10-20 Functions: 104 121 86.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 420 551 76.2 %

Function Name Sort by function name Hit count Sort by hit count
CM_ellap 2668183
Fl_ellcard_Shanks 104786
Fl_ellcard_naive 36316
Fl_ellj 0
Fl_ellj_to_a4a6 0
Fl_ellpoint 3509
Fl_elltrace 110433
Fl_elltrace_CM 22969
Fle_add 1753313
Fle_add_inplace 3409523
Fle_add_slope 1753313
Fle_dbl 4757301
Fle_dbl_inplace 92336
Fle_dbl_slope 4757820
Fle_mul 0
Fle_mulu 312515
Fle_neg 0
Fle_order 108281
Fle_sub 0
FpE_Miller 7931
FpE_Miller_add 1757
FpE_Miller_dbl 15722
FpE_add 1050310
FpE_add_ip 305362
FpE_add_slope 1051423
FpE_changepoint 791
FpE_changepointinv 2058
FpE_chord_update 1757
FpE_dbl 394878
FpE_dbl_slope 401947
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
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_nodiv 2668183
Fp_ellpoint 0
Fp_ffellcard 6081
Fq_elldivpolmod 6167
Mod16 3948756
RgE_to_FpE 931
RgE_to_FpXQE 868
_Fle_add 1753313
_Fle_dbl 4667406
_Fle_mul 415199
_Fle_mulu 312515
_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 104926
compare_multiples 12416506
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 17681
random_Fle 0
random_FpE 19392
random_FpXQE 1005
u2_is_CMj 470
uclosest_lift 108281

Generated by: LCOV version 1.9