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-bordeaux1.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 - FpXX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16827-3d78da8) Lines: 581 626 92.8 %
Date: 2014-09-29 Functions: 72 76 94.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 249 331 75.2 %

Function Name Sort by function name Hit count Sort by hit count
FpXQXQV_autpow 132
FpXQXQV_autsum 78
FpXQXQ_autpow_mul 2
FpXQXQ_autpow_sqr 132
FpXQXQ_autsum_mul 81
FpXQXQ_autsum_sqr 78
FpXQXQ_div 486
FpXQXQ_inv 486
FpXQXQ_invsafe 486
FpXQXQ_matrix_pow 51
FpXQXQ_mul 5522
FpXQXQ_pow 288
FpXQXQ_powers 133
FpXQXQ_sqr 18927
FpXQXV_prod 109
FpXQX_FpXQXQV_eval 163
FpXQX_FpXQXQ_eval 134
FpXQX_FpXQ_mul 64756
FpXQX_digits 154
FpXQX_divrem 157941
FpXQX_divrem_Barrett 0
FpXQX_divrem_Barrett_noGC 1904
FpXQX_divrem_Barrettspec 2331
FpXQX_divrem_basecase 183900
FpXQX_extgcd 5323
FpXQX_fromdigits 56
FpXQX_gcd 4035
FpXQX_invBarrett 1904
FpXQX_invBarrett_Newton 1561
FpXQX_invBarrett_basecase 343
FpXQX_mul 194367
FpXQX_mulspec 217943
FpXQX_powu 0
FpXQX_recipspec 4662
FpXQX_red 159432
FpXQX_rem 31609
FpXQX_rem_Barrett 0
FpXQX_sqr 19858
FpXX_FpX_mul 5408
FpXX_FpX_mulspec 13998
FpXX_Fp_mul 43311
FpXX_add 268089
FpXX_mulu 37372
FpXX_neg 73
FpXX_red 37068
FpXX_sub 13393
FpXX_subspec 2331
FpXYQQ_mul 42
FpXYQQ_pow 1428
FpXYQQ_redswap 112
FpXYQQ_sqr 70
FpXY_FpXQV_evalx 338
FpXY_FpXQ_evalx 42
FpXY_FpY_mulspec 8590
FpXY_eval 8379
FpXY_evalx 16234
FpXY_evaly 11032
Kronecker_to_FpXQX 226794
Kronecker_to_ZXX 84441
ZXX_copy 112
ZXX_is_ZX 19858
ZXX_is_ZX_spec 455744
ZXX_lgrenormalizespec 32802
ZXX_mul_Kronecker 130865
_FpXQXQ_add 5113
_FpXQXQ_cmul 5410
_FpXQXQ_mul 3857
_FpXQXQ_one 1424
_FpXQXQ_red 1419
_FpXQXQ_sqr 18451
_FpXQXQ_zero 0
_FpXQX_add 455
_FpXQX_divrem 3962
_FpXQX_mul 958
_FpXQX_sqr 609
to_FlxqX 138222

Generated by: LCOV version 1.9