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.18.1 lcov report (development 30482-15ec328664) Lines: 2595 2666 97.3 %
Date: 2025-09-07 09:24:11 Functions: 157 157 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_addmul2 60073406
Fl_addmul3 11158624
Fl_addmul4 5175329
Fl_addmul5 25750225
Fl_mul4 1769448
Fl_mul5 96352
Fl_mul6 788498
Fl_mul7 96348
Fl_mul8 884797
Fle_quotient_from_kernel_generator 96355
Flm_Fl_phi2_evalx 28268996
Flm_Fl_phi3_evalx 3726223
Flm_Fl_phi5_evalx 5167073
Flm_Fl_polmodular_evalx 44193521
Flv_deriv_pre_inplace 2464
Flv_lastnonzero 337597
Flv_powu_inplace_pre 39865
Flx_double_eta_jpoly 33128
Flx_double_eta_xpoly 62444
FpV_deriv 56
Fp_modinv_to_j 1162
Fp_polmodular_evalx 126
_qsort_cmp 15283378
append_neighbours 614105
calc_primes_for_discriminants 3201
carray_reverse_inplace 19461
check_generators 809918
compute_L_isogenous_curve 87720
db_add_levels 24
disc_best_modinv 1907423
discriminant_with_classno_at_least 3199
double_eta_Fl 34687
double_eta_exponent 69120
double_eta_initial_js 6928
double_eta_power 33127
double_eta_raw 35415
double_eta_raw_to_Fl 40859
double_eta_raw_to_Fp 455
double_eta_root 35538
eighth_root 5366
enum_volcano_floor 40401
enum_volcano_surface 40401
eval_modpoly_modp 2674
find_L_tors_point 140863
find_noniso_L_isogenous_curve 87729
fourth_root 3926
get_Lsqr_cycle 40399
inflate_polys 10047
internal_db 24960
interpolate_coeffs 43093
make_pcp_floor 3077
make_pcp_surface 3077
mkqfis 144717
modfn_preimage 66942
modfn_root 200992
modfn_unambiguous_root 20908
modinv_degree 7432400
modinv_double_eta_from_2j 20831
modinv_double_eta_from_j 6928
modinv_double_eta_good_disc 5494837
modinv_f3_from_j 357
modinv_f_from_j 3196
modinv_good_atkin 661521
modinv_good_disc 15152433
modinv_good_prime 11344184
modinv_height_factor 22916562
modinv_is_Weber 1008
modinv_is_double_eta 254595
modinv_j_from_2double_eta 6172
modinv_j_from_f 1844
modinv_level 41288
modinv_max_internal_level 28145
modinv_odd_conductor 565092
modinv_parent 140
modinv_parent_power 140
modinv_pfilter 16397
modinv_ramified 798
modinv_sparse_factor 46648
modpoly_height_bound 3199
modpoly_pickD 3201
modpoly_pickD_primes 13196
normalise_coeffs 10047
oneroot_of_classpoly 40396
orientation_ambiguity 54932
phi2_ZV 20015
phi2_atkin11_ZV 7
phi2_atkin13_ZV 14
phi2_atkin17_ZV 21
phi2_atkin19_ZV 14
phi2_atkin3_ZV 7
phi2_atkin5_ZV 14
phi2_atkin7_ZV 7
phi2_g2_ZV 105
phi2_w3w13_ZV 14
phi2_w3w3e2_ZV 21
phi2_w3w5_ZV 35
phi2_w5w7_ZV 63
phi3_ZV 1910
phi3_f3_ZV 21
phi3_w2w13_ZV 42
phi3_w2w7_ZV 182
phi5_ZV 1880
phi5_f_ZV 189
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
phi5_w3w7_ZV 49
phi7_w2w5_ZV 91
phi_atkin11_j 470
phi_atkin13_j 2682
phi_atkin17_j 4110
phi_atkin19_j 1535
phi_atkin3_j 924
phi_atkin5_j 1190
phi_atkin7_j 301
phi_w2w13_j 2402
phi_w2w3_j 1060
phi_w2w5_j 2927
phi_w2w7_j 6628
phi_w3w13_j 210
phi_w3w3_j 3825
phi_w3w5_j 1159
phi_w3w7_j 2986
phi_w5w7_j 3006
polmodular 651
polmodular0_ZM 28026
polmodular0_powerup_ZM 140
polmodular_ZM 19266
polmodular_ZXX 19182
polmodular_db_add_level 27080
polmodular_db_add_levels 5257
polmodular_db_for_inv 387243
polmodular_db_getp 560159
polmodular_db_init 21492
polmodular_small_ZM 24960
polmodular_split_p_Flm 40380
polmodular_worker 40398
prime_to_conductor 3493271
primeform_discrete_log 210552
primeform_exp_order 1114438
qfb_distinct_prods 234312
qfb_is_two_torsion 1716120
qfb_nform 144620
qform_primeform2 83180
red_primeform 3493271
root_matrix 40400
roots_to_coeffs 42764
safe_abs_sqrt 10318
scanD0 3201
select_L0 3199
select_curve_with_L_tors_point 87719
sixth_root 5721
sympol_to_ZM 24820
twelth_root 893
update_Lsqr_cycle 573674
vecsmall_pick 614097
verify_L_sylow_is_cyclic 49026
weber_exponent 77

Generated by: LCOV version 1.16