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 16393-29b9383) Lines: 831 992 83.8 %
Date: 2014-04-24 Functions: 98 119 82.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 416 545 76.3 %

Function Name Sort by function name Hit count Sort by hit count
CM_ellap 1953180
Fl_ellcard_Shanks 134072
Fl_ellcard_naive 24239
Fl_ellpoint 2981
Fl_elltrace 1865
Fl_elltrace_CM 2885
Fle_add 2391971
Fle_add_inplace 3376562
Fle_add_slope 2391971
Fle_dbl 6498953
Fle_dbl_inplace 120304
Fle_dbl_slope 6499444
Fle_mul 0
Fle_mulu 400011
Fle_neg 0
Fle_order 137048
Fle_sub 0
FpE_Miller 5683
FpE_Miller_add 1214
FpE_Miller_dbl 11220
FpE_add 491293
FpE_add_ip 305362
FpE_add_slope 492059
FpE_changepoint 565
FpE_changepointinv 1250
FpE_chord_update 1214
FpE_dbl 311979
FpE_dbl_slope 317010
FpE_log 30
FpE_mul 310
FpE_neg 258362
FpE_neg_i 0
FpE_order 507
FpE_sub 0
FpE_tangent_update 11220
FpE_tatepairing 140
FpE_to_mod 90
FpE_vert 18225
FpE_weilpairing 4524
FpXQE_Miller 0
FpXQE_Miller_add 0
FpXQE_Miller_dbl 0
FpXQE_add 20528
FpXQE_add_slope 20528
FpXQE_changepoint 1225
FpXQE_changepointinv 620
FpXQE_chord_update 0
FpXQE_dbl 116508
FpXQE_dbl_slope 116513
FpXQE_log 0
FpXQE_mul 610
FpXQE_neg 535
FpXQE_neg_i 0
FpXQE_order 10
FpXQE_sub 0
FpXQE_tangent_update 0
FpXQE_tatepairing 0
FpXQE_vert 0
FpXQE_weilpairing 9
FpXQ_ellcard 605
FpXQ_ellcardj 600
FpXQ_elldivpol 0
FpXQ_ellgens 5
FpXQ_ellgroup 5
FpXQ_ellj 605
Fp_ellcard 1973823
Fp_ellcard_CM 1953180
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 405
Fp_ellgroup 13625
Fp_ellj 0
Fp_ellj_nodiv 1953180
Fp_ellpoint 0
Fp_ffellcard 4353
Fq_elldivpolmod 1000
Mod16 2684110
RgE_to_FpE 570
RgE_to_FpXQE 620
_Fle_add 2391971
_Fle_dbl 6386193
_Fle_mul 536340
_Fle_mulu 400011
_Fle_rand 0
_FpE_add 472091
_FpE_dbl 311919
_FpE_mul 316258
_FpE_pairorder 4354
_FpE_rand 14102
_FpXQE_add 20528
_FpXQE_dbl 116508
_FpXQE_mul 1592
_FpXQE_pairorder 9
_FpXQE_rand 72
_fix 18872
_red 2525
_rmul 2835
_rsqr 1840
ap_cm 895
ap_j0 27760
ap_j1728 1790970
ap_j287496 100
ap_j8000 90
closest_lift 134221
compare_multiples 9566371
divpol 3835
divpol_f2 1680
divpol_ff 1680
ec_ap_cm 1245
elltrace_extension 4558
get_FpE_group 370
get_FpXQE_group 5
get_table_size 77
is_CMj 1425619
random_Fle 0
random_FpE 14122
random_FpXQE 682
u2_is_CMj 53761
uclosest_lift 137048

Generated by: LCOV version 1.9