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 16624-25b9976) Lines: 831 992 83.8 %
Date: 2014-06-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 1987620
Fl_ellcard_Shanks 69588
Fl_ellcard_naive 27082
Fl_ellpoint 2195
Fl_elltrace 1970
Fl_elltrace_CM 2885
Fle_add 1175582
Fle_add_inplace 2301584
Fle_add_slope 1175582
Fle_dbl 3195679
Fle_dbl_inplace 61761
Fle_dbl_slope 3196065
Fle_mul 0
Fle_mulu 207989
Fle_neg 0
Fle_order 71778
Fle_sub 0
FpE_Miller 5683
FpE_Miller_add 1214
FpE_Miller_dbl 11220
FpE_add 492763
FpE_add_ip 305362
FpE_add_slope 493529
FpE_changepoint 565
FpE_changepointinv 1475
FpE_chord_update 1214
FpE_dbl 312359
FpE_dbl_slope 317390
FpE_log 30
FpE_mul 310
FpE_neg 258362
FpE_neg_i 0
FpE_order 602
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 2011001
Fp_ellcard_CM 1987620
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 405
Fp_ellgroup 13720
Fp_ellj 0
Fp_ellj_nodiv 1987620
Fp_ellpoint 0
Fp_ffellcard 4353
Fq_elldivpolmod 1000
Mod16 2820815
RgE_to_FpE 665
RgE_to_FpXQE 620
_Fle_add 1175582
_Fle_dbl 3134804
_Fle_mul 275894
_Fle_mulu 207989
_Fle_rand 0
_FpE_add 472171
_FpE_dbl 312169
_FpE_mul 316448
_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 924
ap_j0 35415
ap_j1728 1882115
ap_j287496 160
ap_j8000 125
closest_lift 69737
compare_multiples 8337459
divpol 3835
divpol_f2 1680
divpol_ff 1680
ec_ap_cm 1369
elltrace_extension 4558
get_FpE_group 370
get_FpXQE_group 5
get_table_size 77
is_CMj 742813
random_Fle 0
random_FpE 14122
random_FpXQE 682
u2_is_CMj 27955
uclosest_lift 71778

Generated by: LCOV version 1.9