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 16827-3d78da8) Lines: 870 932 93.3 %
Date: 2014-09-29 Functions: 55 57 96.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 339 458 74.0 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 1064
FlxX_equal 1244
Flxq_study_eqn 222
FpXQ_study_eqn 343
Fp_ellcard_SEA 525
Fp_study_eqn 5257
FqX_equal 22787
Fq_ellcard_SEA 553
Fq_ellj 6545
add_atkin 2212
champion 567
cmp_atkin 9289
compute_W 1876
compute_diff 1064
compute_u 4031
cost 155106
eigen_elladd 12402
eigen_elldbl 4945
eigen_ellmulu 2191
eigenu_elladd 744
eigenu_elldbl 242
ellmodulareqn 7
ellsea 0
err_modular_eqn 0
find_coeff 12682
find_eigen_value 2996
find_eigen_value_power 938
find_isogenous 4424
find_isogenous_from_Atkin 1533
find_isogenous_from_canonical 2891
find_kernel 5403
find_kernel_power 938
find_numerator_isogeny 938
find_trace 5607
find_trace_Atkin 2569
find_trace_Elkies_power 3010
find_trace_lp1_roots 21
find_trace_one_root 329
find_transformation 938
get_FqE_group 539
get_bound_bsgs 553
get_lgatkin 1099
get_modular_eqn 5614
get_seadata 21
init_eigen 3748
init_eigenu 186
list_to_pol 5614
match_and_sort 539
multiple_crt 945
pari_close_seadata 1186
pari_init_seadata 1218
possible_traces 1064
seadata_filename 21
separation 532
set_cost 61425
study_modular_eqn 5607
value 124999

Generated by: LCOV version 1.9