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 - polclass.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21921-ca7d0c8) Lines: 841 866 97.1 %
Date: 2018-02-20 06:16:13 Functions: 59 60 98.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
logfac 0
polclass_small_disc 77
orient_pcp 224
evec_equal 231
evec_inverse 245
polclass_psum 504
evec_compose 518
polclass 616
verify_2path 672
evec_inverse_o 707
distinct_inverses 987
check_modinv 1218
next_prime_evec 1225
famatsmall_divexact 1284
index_to_evec 1316
modinv_inverted_involution 1926
modinv_negated_involution 1926
modinv_units 2702
carray_isin 3304
evec_n_to_m 3563
evec_orders 3563
pcp_alloc_and_set 3563
classgp_pcp_check_generators 3591
classgp_make_pcp 3648
classno_wrapper 3648
height_margin 3648
modinv_has_sign_ambiguity 3648
select_classpoly_prime_pool 3648
select_classpoly_primes 3648
upper_bound_on_classpoly_coeffs 3648
verify_edge 3654
classgp_pcp_clear 3655
polclass0 3725
evec_clear 4396
evec_order 4624
next_generator 4771
adjust_orientation 4935
oriented_n_action 4935
evec_ri_mutate 5611
evec_to_index 9261
adjust_signs 10262
evec_ri 13040
Flv_powsum_pre 15561
evec_reduce 18859
evec_copy 20843
is_smooth_enough 45689
hclassno_wrapper 49330
polclass_roots_modp 121245
select_twisting_param 121245
setup_norm_eqn 121245
find_jinv 121712
best_torsion_constraint 121776
hasse_bounds 121776
find_j_inv_with_given_trace 121783
oneroot_of_classpoly 121783
test_curve_order 141977
torsion_constraint 365328
random_FleV 517011
cmp_small 1089924
primecmp 1089924

Generated by: LCOV version 1.11