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 - ellsea.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21743-016b453) Lines: 1119 1168 95.8 %
Date: 2018-01-22 06:18:30 Functions: 81 83 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fp_elldivpol 0
Zq_sqrt 0
ellmodulareqn 35
FpXQ_elldivpol 42
find_isogenous_from_J 42
Fq_polmodular_eval 63
Fq_to_Flx 68
find_trace_lp1_roots 70
corr 84
get_seadata 91
seadata_filename 91
RgXY_deflatex 168
Flxq_elldivpolmod_init 212
Flxq_find_eigen_Frobenius 212
Flxq_find_eigen_value_power 212
find_eigen_value_oneroot 378
Flxq_study_eqn 396
find_trace_one_root 413
Flxq_elldivpol34 424
FpXQ_study_eqn 518
separation 847
get_FqE_group 903
match_and_sort 903
Fp_ellcard_SEA 910
champion 931
get_bound_bsgs 931
Fq_ellcard_SEA 959
Zq_inv 1085
FqX_homogenous_div 1211
FqX_numer_isog_abscissa 1218
find_kernel_power 1218
pari_init_seadata 1519
multiple_crt 1666
BSGS_pre 1694
compute_diff 1694
possible_traces 1694
get_lgatkin 1778
Fq_ellj 2177
find_isogenous_from_Atkin 2366
Zq_ellj 2429
add_atkin 3661
find_isogenous_from_canonical 4354
find_trace_Atkin 4368
find_trace_Elkies_power 4802
Fq_find_eigen_value_power 5374
FqX_homogenous_eval 5586
find_eigen_value_power 5586
Fq_find_eigen_Frobenius 5752
Fq_elldivpolmod_close 5964
compute_u 6083
find_isogenous 6762
find_kernel 8127
Fq_elldivpolmod 8701
Fp_study_eqn 8722
list_to_pol 9212
seadata_parse 9212
find_trace 9247
get_modular_eqn 9247
study_modular_eqn 9247
seadata_cache 9268
Fq_elldivpol2 9345
Fq_elldivpol2d 9345
pari_pthread_init_seadata 10278
meqn_j 10486
Fq_elldivpolmod_init 14453
divpol_free 14665
divpolmod_init 14665
cmp_atkin 15372
find_coeff 16254
rhs 21574
Fq_ellyn 22799
Fq_elldivpol34 28906
set_cost 73507
Zq_pval 86415
Zq_divexact 86450
pari_thread_init_seadata 87813
divpol_ff 96572
Zq_Z_div_safe 140322
divpol_f2 149534
value 149751
cost 186207
divpol 203917
Zq_div 233702

Generated by: LCOV version 1.11