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.12.0 lcov report (development 23348-5caea72e3) Lines: 483 504 95.8 %
Date: 2018-12-14 05:41:32 Functions: 41 41 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
is_sing 14
F2x_genus2charpoly_naive 77
ZXM_to_padic 140
Fq_get_UV 147
ZlXQX_hyperellpadicfrobenius 147
ZpXQXXQ_invsqrt 147
nfhyperellpadicfrobenius 147
Flx_difftable 217
Flx_genus2charpoly_naive 217
FpXXX_Fp_mul 413
FpXXX_red 413
ZpXQXXQ_sqr 413
Fq_diff_red 441
ZXC_to_padic 441
ZXX_to_FpXC 441
ZpXQXXQ_frob 441
charpoly_funceq 679
hyperell_Weil_bound 686
ZM_to_padic 721
ZlX_hyperellpadicfrobenius 721
ZpXXQ_invsqrt 721
get_UV 721
hyperellpadicfrobenius 721
hyperellcharpoly 987
get_basis 1169
ZpXQXXQ_mul 1267
FlxV_Fl2_eval_pre 1519
ZX_to_padic 1631
ZpXQXXQ_red 1680
FpXXX_renormalize 2072
FpXXQ_sqr 2191
ZC_to_padic 5194
ZpXXQ_frob 5194
diff_red 5194
revdigits 6503
frac_to_Fq 6573
FpXXQ_mul 9548
FpXXQ_red 11739
Fl2V_next 44478
frac_to_Fp 68950
to_ZX 633507

Generated by: LCOV version 1.13