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 17236-ec2ebc9) Lines: 908 984 92.3 %
Date: 2014-12-19 Functions: 100 109 91.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 439 541 81.1 %

Function Name Sort by function name Hit count Sort by hit count
Fl_ellcard_Shanks 105661
Fl_ellcard_naive 38573
Fl_ellpoint 3689
Fl_elltrace 111281
Fl_elltrace_CM 134215
Fle_add_inplace 3412765
Fle_dbl_inplace 93092
FpE_Miller 15372
FpE_Miller_add 4928
FpE_Miller_dbl 34356
FpE_add 1065867
FpE_add_ip 305362
FpE_add_slope 1068779
FpE_changepoint 791
FpE_changepointinv 1799
FpE_chord_update 4928
FpE_dbl 437437
FpE_dbl_slope 454922
FpE_log 42
FpE_mul 342
FpE_neg 363944
FpE_neg_i 0
FpE_order 812
FpE_sub 0
FpE_tangent_update 34356
FpE_tatepairing 196
FpE_to_mod 126
FpE_vert 55118
FpE_weilpairing 11212
FpXQE_Miller 70
FpXQE_Miller_add 630
FpXQE_Miller_dbl 4620
FpXQE_add 37436
FpXQE_add_slope 38059
FpXQE_changepoint 1715
FpXQE_changepointinv 868
FpXQE_chord_update 630
FpXQE_dbl 191222
FpXQE_dbl_slope 195751
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 28
FpXQ_ellgens 7
FpXQ_ellgroup 14
FpXQ_ellj 848
FpXQ_elljissupersingular 164199
Fp_ellcard 2696420
Fp_ellcard_CM 2668658
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 567
Fp_ellgroup 21525
Fp_ellj 0
Fp_ellj_get_CM 2856
Fp_ellj_nodiv 2114
Fp_elljissupersingular 742
Fp_ellpoint 0
Fp_ffellcard 6096
FqX_quad_root 5495
Fq_elldivpolmod 6195
Mod16 3948756
RgE_to_FpE 931
RgE_to_FpXQE 868
_FpE_add 1046845
_FpE_dbl 437437
_FpE_mul 477463
_FpE_pairorder 10974
_FpE_rand 29245
_FpXQE_add 37436
_FpXQE_dbl 191222
_FpXQE_mul 3127
_FpXQE_pairorder 35
_FpXQE_rand 139
_fix 18872
_red 16912
_rmul 71316
_rsqr 24899
ap_cm 1006
ap_j0 49588
ap_j1728 2634988
ap_j287496 112
ap_j8000 112
closest_lift 105801
compare_multiples 12417088
divpol 69965
divpol_f2 43008
divpol_ff 43008
ec_ap_cm 19248
elltrace_extension 6383
get_FpE_group 546
get_FpXQE_group 7
get_table_size 77
is_CMj 34414
jissupersingular 13734
path_extends_to_floor 2506
random_FpE 29273
random_FpXQE 993
u2_is_CMj 740
uclosest_lift 109336

Generated by: LCOV version 1.9