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-bordeaux.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 - polmodular.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.11.0 lcov report (development 22860-5579deb0b) Lines: 2276 2348 96.9 %
Date: 2018-07-18 05:36:42 Functions: 142 142 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
phi2_w3w13_ZV 14
phi2_w3w3e2_ZV 21
phi3_f3_ZV 21
phi2_w3w5_ZV 35
phi5_w3w7_ZV 42
weber_exponent 42
phi3_w2w13_ZV 49
FpV_deriv 56
phi2_w5w7_ZV 56
phi5_w2w3_ZV 56
phi5_w3w3_ZV 56
Fp_polmodular_evalx 112
phi7_w2w5_ZV 112
phi2_g2_ZV 119
modinv_parent 140
modinv_parent_power 140
polmodular0_powerup_ZM 140
double_eta_raw_to_Fp 147
phi3_w2w7_ZV 168
phi5_f_ZV 182
phi_w3w13_j 210
modinv_f3_from_j 357
modinv_ramified 483
polmodular 609
modinv_is_Weber 672
Fp_modinv_to_j 924
twelth_root 928
phi_w2w3_j 1078
phi5_ZV 1113
phi3_ZV 1134
phi_w3w5_j 1177
modinv_j_from_f 1858
Flv_deriv_pre_inplace 2407
eval_modpoly_modp 2408
phi_w3w7_j 2412
discriminant_with_classno_at_least 2699
modpoly_height_bound 2699
select_L0 2699
calc_primes_for_discriminants 2701
modpoly_pickD 2701
scanD0 2701
modinv_f_from_j 2889
phi_w5w7_j 2902
phi_w2w13_j 2933
phi_w3w3_j 3219
phi_w2w5_j 3234
polmodular_db_add_levels 3798
fourth_root 3813
eighth_root 4988
sixth_root 5221
modinv_double_eta_from_j 5591
double_eta_initial_js 5592
modinv_j_from_2double_eta 5908
phi_w2w7_j 6087
safe_abs_sqrt 9637
modpoly_pickD_primes 9829
normalise_coeffs 10737
inflate_polys 10739
modinv_double_eta_from_2j 11662
modfn_unambiguous_root 11718
modinv_pfilter 12530
polmodular_ZXX 14497
polmodular_ZM 14574
phi2_ZV 15022
polmodular_db_init 15225
carray_reverse_inplace 15915
sympol_to_ZM 18200
internal_db 18340
polmodular_small_ZM 18340
polmodular_db_add_level 20738
polmodular0_ZM 20906
modinv_max_internal_level 21011
double_eta_Fl 22846
double_eta_raw 23252
double_eta_root 23789
Flx_double_eta_jpoly 28591
double_eta_power 28591
double_eta_raw_to_Fl 28754
modinv_level 31717
polmodular_worker 32254
norm_eqn_update 32255
oneroot_of_classpoly 32272
polmodular_split_p_Flm 32280
enum_volcano_surface 32288
get_Lsqr_cycle 32288
make_pcp_surface 32288
root_matrix 32288
enum_volcano_floor 32289
make_pcp_floor 32290
orientation_ambiguity 32999
roots_to_coeffs 34452
interpolate_coeffs 34789
modinv_sparse_factor 37538
verify_L_sylow_is_cyclic 39323
Flv_powu_inplace_pre 39602
Flx_double_eta_xpoly 40099
double_eta_exponent 52527
modfn_preimage 53392
qform_primeform2 61211
compute_L_isogenous_curve 70164
select_curve_with_L_tors_point 70164
find_noniso_L_isogenous_curve 70167
Fl_mul7 77202
Fl_mul5 77203
Fle_quotient_from_kernel_generator 77203
find_L_tors_point 112743
qfb_nform 134554
modfn_root 160668
primeform_discrete_log 167831
mkqfis 168744
modinv_is_double_eta 198701
qfb_distinct_prods 230217
polmodular_db_for_inv 301578
modinv_good_prime 311858
Flv_lastnonzero 341309
update_Lsqr_cycle 438048
polmodular_db_getp 439664
modinv_odd_conductor 457168
append_neighbours 470318
vecsmall_pick 470350
check_generators 652927
Fl_mul6 663502
Fl_mul8 740660
primeform_exp_order 905402
Fl_mul4 1481061
qfb_is_two_torsion 1668590
disc_best_modinv 1895915
Flm_Fl_phi3_evalx 2922343
prime_to_conductor 3227224
red_primeform 3227224
Flm_Fl_phi5_evalx 3955100
Fl_addmul4 3960558
modinv_double_eta_good_disc 5268947
modinv_degree 7183622
Fl_addmul3 8755072
_qsort_cmp 12906347
modinv_good_disc 14550590
Fl_addmul5 19726914
modinv_height_factor 21028719
Flm_Fl_phi2_evalx 22464392
Flm_Fl_polmodular_evalx 36325859
Fl_addmul2 47752025

Generated by: LCOV version 1.13