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 - hyperell.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21353-12523aa) Lines: 482 503 95.8 %
Date: 2017-11-24 06:20:58 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 70
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 658
hyperell_Weil_bound 665
ZM_to_padic 693
ZlX_hyperellpadicfrobenius 693
ZpXXQ_invsqrt 693
get_UV 693
hyperellpadicfrobenius 693
hyperellcharpoly 959
get_basis 1120
ZpXQXXQ_mul 1267
FlxV_Fl2_eval_pre 1519
ZX_to_padic 1631
ZpXQXXQ_red 1680
FpXXQ_sqr 2065
FpXXX_renormalize 2072
ZC_to_padic 4949
ZpXXQ_frob 4949
diff_red 4949
revdigits 6230
frac_to_Fq 6573
FpXXQ_mul 9072
FpXXQ_red 11137
Fl2V_next 44478
frac_to_Fp 68936
to_ZX 624771

Generated by: LCOV version 1.11