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 - polclass.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 825 846 97.5 %
Date: 2024-04-26 08:07:25 Functions: 72 73 98.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flv_powsum_pre 15978
adjust_orientation 6159
adjust_signs 10843
best_torsion_constraint 138415
check_modinv 2786
classgp_make_pcp 4861
classgp_pcp_check_generators 4349
distinct_inverses 1001
evec_clear 5042
evec_compose 518
evec_copy 12213
evec_equal 259
evec_inverse 203
evec_inverse_o 735
evec_n_to_m 4328
evec_order 5529
evec_orders 4328
evec_reduce 21554
evec_ri 13540
evec_ri_mutate 5796
evec_to_index 10797
factor_uv 182927
famatsmall_divexact 2541
find_j_inv_with_given_trace 138609
find_jinv 138247
hasse_bounds 138663
hclassno_wrapper 187788
height_margin 4861
index_to_evec 1386
logfac 0
modinv_has_sign_ambiguity 4861
modinv_inverted_involution 2230
modinv_negated_involution 2230
modinv_units 3472
next_generator 5655
next_prime_evec 1239
norm_eqn_set 174657
oneroot_of_classpoly 138932
orient_pcp 280
oriented_n_action 6159
pcp_get_D 146713
pcp_get_D0 187788
pcp_get_L 9299
pcp_get_L0 9299
pcp_get_fau 4861
pcp_get_h 187788
pcp_get_inv 147090
pcp_get_k 11300
pcp_get_m 6712
pcp_get_n 6439
pcp_get_o 6439
pcp_get_orient_p 6712
pcp_get_orient_q 6712
pcp_get_orient_reps 6439
pcp_get_r 6439
pcp_get_u 137007
polclass 2170
polclass0 6352
polclass_psum 553
polclass_roots_modp 137080
polclass_small_disc 1491
polclass_worker 137072
primecmp 1216473
quadnegclassnou 4861
random_FleV 853826
select_classpoly_prime_pool 4861
select_classpoly_primes 4861
test_curve_order 164637
torsion_constraint 414840
upper_bound_on_classpoly_coeffs 4861
vecsmall_isin_skip 7603
verify_2path 672
verify_edge 3966

Generated by: LCOV version 1.14