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 23008-54b2e2f01) Lines: 481 502 95.8 %
Date: 2018-09-20 05:37:46 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 658
hyperell_Weil_bound 665
ZM_to_padic 700
ZlX_hyperellpadicfrobenius 700
ZpXXQ_invsqrt 700
get_UV 700
hyperellpadicfrobenius 700
hyperellcharpoly 966
get_basis 1127
ZpXQXXQ_mul 1267
FlxV_Fl2_eval_pre 1519
ZX_to_padic 1631
ZpXQXXQ_red 1680
FpXXX_renormalize 2072
FpXXQ_sqr 2086
ZC_to_padic 4963
ZpXXQ_frob 4963
diff_red 4963
revdigits 6251
frac_to_Fq 6573
FpXXQ_mul 9128
FpXXQ_red 11214
Fl2V_next 44478
frac_to_Fp 68950
to_ZX 625254

Generated by: LCOV version 1.13