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 22307-7f6745a) Lines: 1118 1166 95.9 %
Date: 2018-04-22 06:16:17 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 98
seadata_filename 98
RgXY_deflatex 168
Flxq_elldivpolmod_init 212
Flxq_find_eigen_Frobenius 212
Flxq_find_eigen_value_power 212
Flxq_study_eqn 396
Flxq_elldivpol34 424
find_eigen_value_oneroot 483
FpXQ_study_eqn 518
find_trace_one_root 518
separation 889
get_FqE_group 945
match_and_sort 945
Fp_ellcard_SEA 973
champion 973
get_bound_bsgs 994
Fq_ellcard_SEA 1022
Zq_inv 1085
FqX_homogenous_div 1253
FqX_numer_isog_abscissa 1260
find_kernel_power 1260
pari_init_seadata 1566
multiple_crt 1750
BSGS_pre 1778
compute_diff 1778
possible_traces 1778
get_lgatkin 1862
Fq_ellj 2282
find_isogenous_from_Atkin 2471
Zq_ellj 2534
add_atkin 3885
find_isogenous_from_canonical 4578
find_trace_Atkin 4592
find_trace_Elkies_power 5082
Fq_find_eigen_value_power 5591
FqX_homogenous_eval 5761
find_eigen_value_power 5803
Fq_find_eigen_Frobenius 6074
Fq_elldivpolmod_close 6286
compute_u 6293
find_isogenous 7091
find_kernel 8456
Fq_elldivpolmod 9079
Fp_study_eqn 9226
Fq_elldivpol2 9716
Fq_elldivpol2d 9716
list_to_pol 9716
seadata_parse 9716
find_trace 9751
get_modular_eqn 9751
study_modular_eqn 9751
seadata_cache 9772
pari_pthread_init_seadata 10493
meqn_j 11032
Fq_elldivpolmod_init 15153
divpol_free 15365
divpolmod_init 15365
cmp_atkin 16303
find_coeff 16912
rhs 22659
Fq_ellyn 23604
Fq_elldivpol34 30306
set_cost 75054
pari_thread_init_seadata 89367
Zq_pval 89803
Zq_divexact 89838
divpol_ff 102046
Zq_Z_div_safe 145782
value 152817
divpol_f2 156835
cost 190197
divpol 214039
Zq_div 243334

Generated by: LCOV version 1.11