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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 2255 2326 96.9 %
Date: 2018-10-20 05:38:07 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 2408
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 2890
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 4987
sixth_root 5233
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
inflate_polys 10679
normalise_coeffs 10679
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 15813
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 23808
Flx_double_eta_jpoly 28592
double_eta_power 28592
double_eta_raw_to_Fl 28753
modinv_level 31717
polmodular_worker 32251
norm_eqn_update 32252
oneroot_of_classpoly 32265
polmodular_split_p_Flm 32269
enum_volcano_floor 32287
enum_volcano_surface 32287
get_Lsqr_cycle 32287
root_matrix 32287
make_pcp_floor 32288
make_pcp_surface 32288
orientation_ambiguity 32999
roots_to_coeffs 34394
interpolate_coeffs 34729
modinv_sparse_factor 37526
verify_L_sylow_is_cyclic 39334
Flv_powu_inplace_pre 39513
Flx_double_eta_xpoly 40099
double_eta_exponent 52547
modfn_preimage 53391
qform_primeform2 61211
find_noniso_L_isogenous_curve 70164
compute_L_isogenous_curve 70166
select_curve_with_L_tors_point 70167
Fl_mul5 77209
Fl_mul7 77211
Fle_quotient_from_kernel_generator 77218
find_L_tors_point 112680
qfb_nform 134554
modfn_root 160668
primeform_discrete_log 167831
mkqfis 168744
modinv_is_double_eta 198697
qfb_distinct_prods 230217
polmodular_db_for_inv 301570
Flv_lastnonzero 339944
update_Lsqr_cycle 438055
polmodular_db_getp 439659
modinv_odd_conductor 457168
append_neighbours 470331
vecsmall_pick 470351
check_generators 652927
Fl_mul6 663226
Fl_mul8 740389
primeform_exp_order 905402
Fl_mul4 1480616
qfb_is_two_torsion 1668590
disc_best_modinv 1895915
Flm_Fl_phi3_evalx 2920182
prime_to_conductor 3227224
red_primeform 3227224
Flm_Fl_phi5_evalx 3955660
Fl_addmul4 3959616
modinv_double_eta_good_disc 5268947
modinv_good_prime 6714622
modinv_degree 7183622
Fl_addmul3 8745868
_qsort_cmp 12906347
modinv_good_disc 14550590
Fl_addmul5 19722901
modinv_height_factor 21028719
Flm_Fl_phi2_evalx 22403659
Flm_Fl_polmodular_evalx 36259055
Fl_addmul2 47611599

Generated by: LCOV version 1.13