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 17097-9391e68) Lines: 908 984 92.3 %
Date: 2014-11-21 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 75457
Fl_ellcard_naive 27549
Fl_ellpoint 2635
Fl_elltrace 79503
Fl_elltrace_CM 95863
Fle_add_inplace 2346137
Fle_dbl_inplace 66476
FpE_Miller 10980
FpE_Miller_add 3520
FpE_Miller_dbl 24540
FpE_add 767877
FpE_add_ip 305362
FpE_add_slope 769957
FpE_changepoint 565
FpE_changepointinv 1285
FpE_chord_update 3520
FpE_dbl 316375
FpE_dbl_slope 328886
FpE_log 30
FpE_mul 310
FpE_neg 259982
FpE_neg_i 0
FpE_order 602
FpE_sub 0
FpE_tangent_update 24540
FpE_tatepairing 140
FpE_to_mod 90
FpE_vert 39370
FpE_weilpairing 8008
FpXQE_Miller 50
FpXQE_Miller_add 450
FpXQE_Miller_dbl 3300
FpXQE_add 26734
FpXQE_add_slope 27179
FpXQE_changepoint 1225
FpXQE_changepointinv 620
FpXQE_chord_update 450
FpXQE_dbl 136550
FpXQE_dbl_slope 139785
FpXQE_log 0
FpXQE_mul 610
FpXQE_neg 535
FpXQE_neg_i 0
FpXQE_order 10
FpXQE_sub 0
FpXQE_tangent_update 3300
FpXQE_tatepairing 0
FpXQE_vert 3800
FpXQE_weilpairing 25
FpXQ_ellcard 611
FpXQ_ellcardj 600
FpXQ_elldivpol 20
FpXQ_ellgens 5
FpXQ_ellgroup 10
FpXQ_ellj 606
FpXQ_elljissupersingular 117285
Fp_ellcard 1926014
Fp_ellcard_CM 1906184
Fp_ellcard_Shanks 77
Fp_elldivpol 0
Fp_ellgens 405
Fp_ellgroup 15375
Fp_ellj 0
Fp_ellj_get_CM 2040
Fp_ellj_nodiv 1510
Fp_elljissupersingular 530
Fp_ellpoint 0
Fp_ffellcard 4354
FqX_quad_root 3925
Fq_elldivpolmod 4425
Mod16 2820540
RgE_to_FpE 665
RgE_to_FpXQE 620
_FpE_add 748855
_FpE_dbl 316375
_FpE_mul 341217
_FpE_pairorder 7838
_FpE_rand 20889
_FpXQE_add 26734
_FpXQE_dbl 136550
_FpXQE_mul 2233
_FpXQE_pairorder 25
_FpXQE_rand 99
_fix 18872
_red 12080
_rmul 50940
_rsqr 17785
ap_cm 710
ap_j0 35420
ap_j1728 1882134
ap_j287496 80
ap_j8000 80
closest_lift 75601
compare_multiples 8358020
divpol 49975
divpol_f2 30720
divpol_ff 30720
ec_ap_cm 13740
elltrace_extension 4559
get_FpE_group 390
get_FpXQE_group 5
get_table_size 77
is_CMj 24370
jissupersingular 9810
path_extends_to_floor 1790
random_FpE 20909
random_FpXQE 709
u2_is_CMj 740
uclosest_lift 78082

Generated by: LCOV version 1.9