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.10.0 lcov report (development 21730-50db3b0) Lines: 2443 2536 96.3 %
Date: 2018-01-19 06:18:47 Functions: 150 150 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
phi3_w2w13_ZV 42
phi2_w5w7_ZV 49
phi5_w3w7_ZV 49
FpV_deriv 56
phi5_w3w3_ZV 56
phi5_w2w3_ZV 70
weber_exponent 84
phi7_w2w5_ZV 98
Fp_polmodular_evalx 112
phi2_g2_ZV 112
double_eta_raw_to_Fp 119
modinv_parent 133
modinv_parent_power 133
polmodular0_powerup_ZM 133
phi3_w2w7_ZV 154
phi5_f_ZV 189
phi_w3w13_j 210
modinv_f3_from_j 357
modinv_ramified 441
polmodular 609
Fp_modinv_to_j 665
modinv_is_Weber 721
twelth_root 1068
phi5_ZV 1085
phi_w3w5_j 1107
phi3_ZV 1113
phi_w2w3_j 1449
phi_w2w13_j 1876
modinv_j_from_f 1942
eval_modpoly_modp 2407
Flv_deriv_pre_inplace 2409
phi_w3w3_j 2519
dinfo_to_vinfo 2542
modpoly_disc_info_clear 2542
ne_to_vne 2542
norm_eqn_init 2542
phi_w5w7_j 2587
discriminant_with_classno_at_least 2657
modpoly_height_bound 2657
select_L0 2657
calc_primes_for_discriminants 2659
modpoly_pickD 2659
scanD0 2659
phi_w3w7_j 2944
modinv_f_from_j 3114
phi_w2w5_j 3500
fourth_root 3673
polmodular_db_add_levels 3679
modinv_j_from_2double_eta 5082
sixth_root 5336
eighth_root 5497
double_eta_initial_js 5522
modinv_double_eta_from_j 5522
phi_w2w7_j 5688
modpoly_pickD_primes 9745
safe_abs_sqrt 10085
modinv_double_eta_from_2j 10493
modfn_unambiguous_root 10551
inflate_polys 10713
normalise_coeffs 10713
modinv_pfilter 12404
polmodular_ZXX 14490
polmodular_ZM 14567
phi2_ZV 15001
polmodular_db_init 15211
carray_reverse_inplace 15306
sympol_to_ZM 18109
internal_db 18242
polmodular_small_ZM 18242
polmodular_db_add_level 20143
polmodular0_ZM 20773
modinv_max_internal_level 20878
double_eta_Fl 21537
double_eta_raw 21880
double_eta_root 22525
double_eta_raw_to_Fl 26619
Flx_double_eta_jpoly 26729
double_eta_power 26730
norm_eqn_update 31257
vne_to_ne 31258
vinfo_to_dinfo 31268
polmodular_worker 31269
modinv_level 31346
oneroot_of_classpoly 31484
polmodular_split_p_Flm 31516
root_matrix 31537
get_Lsqr_cycle 31539
enum_volcano_surface 31540
make_pcp_floor 31540
make_pcp_surface 31540
enum_volcano_floor 31541
orientation_ambiguity 32392
roots_to_coeffs 33842
interpolate_coeffs 34153
modinv_sparse_factor 36689
Flx_double_eta_xpoly 37552
verify_L_sylow_is_cyclic 38362
Flv_powu_inplace_pre 41245
double_eta_exponent 49374
modfn_preimage 52032
qform_primeform2 59510
select_curve_with_L_tors_point 68600
compute_L_isogenous_curve 68601
find_noniso_L_isogenous_curve 68603
Fl_mul7 75425
Fl_mul5 75426
Fle_quotient_from_kernel_generator 75427
eql_elt 87013
find_L_tors_point 110238
modfn_root 158093
mkqfis 164187
qfb_nform 166005
primeform_discrete_log 167044
modinv_is_double_eta 194224
qfb_distinct_prods 261990
polmodular_db_for_inv 295334
modinv_good_prime 306643
Flv_lastnonzero 345052
polmodular_db_getp 429896
update_Lsqr_cycle 430605
modinv_odd_conductor 450093
append_neighbours 462123
vecsmall_pick 462150
discrete_log 618944
check_generators 647507
Fl_mul6 656471
Fl_mul8 731856
primeform_exp_order 895509
Fl_mul4 1463667
qfb_is_two_torsion 2004114
disc_best_modinv 2373910
Flm_Fl_phi3_evalx 2884753
prime_to_conductor 3893743
red_primeform 3893743
Flm_Fl_phi5_evalx 3980535
Fl_addmul4 3981680
modinv_double_eta_good_disc 6455552
Fl_addmul3 8646898
modinv_degree 8846425
_qsort_cmp 12730500
modinv_good_disc 17764444
Fl_addmul5 19901841
Flm_Fl_phi2_evalx 22359769
Flm_Fl_polmodular_evalx 36221088
Fl_addmul2 47570821
modinv_height_factor 73172356

Generated by: LCOV version 1.11