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 17908-5dc2363) Lines: 954 1015 94.0 %
Date: 2015-07-01 Functions: 64 67 95.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 403 538 74.9 %

Function Name Sort by function name Hit count Sort by hit count
BSGS_pre 1708
FlxX_equal 1601
Flxq_study_eqn 306
FpXQ_study_eqn 427
Fp_ellcard_SEA 854
Fp_study_eqn 8351
FqX_equal 34162
FqX_homogenous_div 1554
FqX_homogenous_eval 7266
FqX_numer_isog_abscissa 1561
Fq_ellcard_SEA 889
Fq_elldivpol2 10045
Fq_elldivpol2d 10045
Fq_ellj 2450
Fq_to_Flx 498
Zq_Z_div_safe 139972
Zq_div 238763
Zq_divexact 86989
Zq_ellj 35
Zq_inv 1463
Zq_pval 86954
Zq_sqrt 0
add_atkin 3430
champion 889
cmp_atkin 14371
compute_diff 1708
compute_u 5810
cost 175931
eigen_elladd 18289
eigen_elldbl 7584
eigen_ellmulu 3458
eigenu_elladd 996
eigenu_elldbl 291
ellmodulareqn 7
ellsea 0
err_modular_eqn 0
find_coeff 16968
find_eigen_value 4522
find_eigen_value_power 1554
find_isogenous 7182
find_isogenous_from_Atkin 2261
find_isogenous_from_canonical 4921
find_kernel 8484
find_kernel_power 1561
find_trace 8785
find_trace_Atkin 4137
find_trace_Elkies_power 4571
find_trace_lp1_roots 70
find_trace_one_root 385
get_FqE_group 861
get_bound_bsgs 889
get_lgatkin 1743
get_modular_eqn 8792
get_seadata 21
init_eigen 5848
init_eigenu 228
list_to_pol 8792
match_and_sort 861
multiple_crt 1505
pari_close_seadata 1780
pari_init_seadata 2288
possible_traces 1708
seadata_filename 21
separation 854
set_cost 69447
study_modular_eqn 8785
value 141449

Generated by: LCOV version 1.9