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 to exceed 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 - hyperell.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.14.0 lcov report (development 27920-e0b3650d81) Lines: 807 829 97.3 %
Date: 2022-08-07 07:33:29 Functions: 70 70 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
hyperellminimaldisc 14
is_sing 14
hyperellred 35
redqfbsplit 35
F2x_genus2charpoly_naive 77
ZX_apolar 77
ZXM_to_padic 147
Fq_get_UV 154
ZlXQX_hyperellpadicfrobenius 154
ZpXQXXQ_invsqrt 154
nfhyperellpadicfrobenius 154
Flx_difftable 217
Flx_genus2charpoly_naive 217
FpXXX_Fp_mul 441
FpXXX_red 441
ZpXQXXQ_sqr 448
Fq_diff_red 469
ZXC_to_padic 469
ZXX_to_FpXC 469
ZpXQXXQ_frob 469
hyperellpadicfrobenius0 595
charpoly_funceq 679
hyperell_Weil_bound 686
hyperellcharpoly 987
ZM_to_padic 1309
ZlX_hyperellpadicfrobenius 1309
ZpXXQ_invsqrt 1309
get_UV 1309
hyperellpadicfrobenius 1309
ZpXQXXQ_mul 1358
FlxV_Fl2_eval_pre 1519
ZX_to_padic 1743
get_basis 1764
ZpXQXXQ_red 1806
FpXXX_renormalize 2247
FpXXQ_sqr 3402
hyperellisoncurve 3493
frac_to_Fq 6573
ZX_hyperellred 7868
red_Cremona_Stoll 7868
ZC_to_padic 10094
ZpXXQ_frob 10094
diff_red 10094
revdigits 12026
polreduce 15736
FpXXQ_mul 16863
FpXXQ_red 20265
Fl2V_next 44478
minimalmodel_getH 50477
algo51 50526
algo56 50526
hyperell_reverse 50526
algo57 51877
hyperellminimalmodel 51877
minimalmodel_merge 51884
check_hyperell_Q 51912
check_hyperell_Rg 65275
check_hyperell_vc 65275
hyperellchangecurve 65275
algo52 102767
hyperell_redQ 103761
hyperelldisc 117810
get_ep 125406
frac_to_Fp 133847
test53 144984
test55 187891
algo541 218470
check_hyperell 286510
RgX_RgM2_eval 300503
to_ZX 1029007

Generated by: LCOV version 1.13