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-bordeaux1.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 - modules - ellsea.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16937-4bd9b4e) Lines: 950 1010 94.1 %
Date: 2014-10-24 Functions: 63 66 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 403 534 75.5 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 1134
FlxX_equal 1601
Flxq_study_eqn 306
FpXQ_study_eqn 427
Fp_ellcard_SEA 567
Fp_study_eqn 5768
FqX_equal 24334
FqX_homogenous_div 973
FqX_homogenous_eval 4389
FqX_numer_isog_abscissa 980
Fq_ellcard_SEA 602
Fq_elldivpol2 6705
Fq_elldivpol2d 6705
Fq_ellj 7182
Zq_Z_div_safe 104304
Zq_div 170119
Zq_divexact 63637
Zq_ellj 35
Zq_inv 1463
Zq_pval 63602
Zq_sqrt 0
add_atkin 2422
champion 602
cmp_atkin 10192
compute_diff 1134
compute_u 4318
cost 163996
eigen_elladd 13284
eigen_elldbl 5232
eigen_ellmulu 2289
eigenu_elladd 996
eigenu_elldbl 291
ellmodulareqn 7
ellsea 0
err_modular_eqn 0
find_coeff 11450
find_eigen_value 3227
find_eigen_value_power 973
find_isogenous 4753
find_isogenous_from_Atkin 1680
find_isogenous_from_canonical 3073
find_kernel 5725
find_kernel_power 980
find_trace 6202
find_trace_Atkin 2849
find_trace_Elkies_power 3276
find_trace_lp1_roots 70
find_trace_one_root 378
get_FqE_group 574
get_bound_bsgs 602
get_lgatkin 1169
get_modular_eqn 6209
get_seadata 21
init_eigen 3972
init_eigenu 228
list_to_pol 6209
match_and_sort 574
multiple_crt 1078
pari_close_seadata 1189
pari_init_seadata 1201
possible_traces 1134
seadata_filename 21
separation 567
set_cost 64932
study_modular_eqn 6202
value 132258

Generated by: LCOV version 1.9