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 16962-5a32637) Lines: 601 640 93.9 %
Date: 2014-10-29 Functions: 75 78 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 260 341 76.2 %

Function Name Sort by function name Hit count Sort by hit count
FpXQXQV_autpow 131
FpXQXQV_autsum 76
FpXQXQ_autpow_mul 1
FpXQXQ_autpow_sqr 131
FpXQXQ_autsum_mul 78
FpXQXQ_autsum_sqr 76
FpXQXQ_div 486
FpXQXQ_inv 486
FpXQXQ_invsafe 486
FpXQXQ_matrix_pow 50
FpXQXQ_mul 12951
FpXQXQ_pow 283
FpXQXQ_powers 129
FpXQXQ_sqr 20948
FpXQXV_prod 109
FpXQX_FpXQXQV_eval 157
FpXQX_FpXQXQ_eval 132
FpXQX_FpXQ_mul 71749
FpXQX_digits 112
FpXQX_div_by_X_x 5761
FpXQX_divrem 160006
FpXQX_divrem_Barrett 0
FpXQX_divrem_Barrett_noGC 1904
FpXQX_divrem_Barrettspec 2331
FpXQX_divrem_basecase 194257
FpXQX_extgcd 5323
FpXQX_fromdigits 42
FpXQX_gcd 28073
FpXQX_invBarrett 1904
FpXQX_invBarrett_Newton 1561
FpXQX_invBarrett_basecase 343
FpXQX_mul 200529
FpXQX_mulspec 224105
FpXQX_powu 14
FpXQX_recipspec 4662
FpXQX_red 168036
FpXQX_rem 41903
FpXQX_rem_Barrett 0
FpXQX_sqr 21781
FpXX_FpX_mul 5392
FpXX_FpX_mulspec 14165
FpXX_Fp_mul 43759
FpXX_add 276467
FpXX_mulu 41649
FpXX_neg 73
FpXX_red 54893
FpXX_sub 28849
FpXX_subspec 2331
FpXYQQ_mul 42
FpXYQQ_pow 1428
FpXYQQ_redswap 112
FpXYQQ_sqr 70
FpXY_FpXQV_evalx 316
FpXY_FpXQ_evalx 28
FpXY_FpY_mulspec 8773
FpXY_eval 8869
FpXY_evalx 17277
FpXY_evaly 11816
Fq_addmul 11522
Kronecker_to_FpXQX 234576
Kronecker_to_ZXX 84371
ZXX_copy 112
ZXX_is_ZX 21781
ZXX_is_ZX_spec 469991
ZXX_lgrenormalizespec 32802
ZXX_mul_Kronecker 130865
_FpXQXQ_add 5105
_FpXQXQ_cmul 5394
_FpXQXQ_mul 3834
_FpXQXQ_one 1410
_FpXQXQ_red 1411
_FpXQXQ_sqr 18288
_FpXQXQ_zero 0
_FpXQX_add 434
_FpXQX_divrem 3584
_FpXQX_mul 895
_FpXQX_sqr 490
to_FlxqX 170800

Generated by: LCOV version 1.9