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 17584-800456e) Lines: 603 642 93.9 %
Date: 2015-03-02 Functions: 76 79 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 262 339 77.3 %

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 500
FpXQXQ_invsafe 500
FpXQXQ_matrix_pow 50
FpXQXQ_mul 13147
FpXQXQ_pow 283
FpXQXQ_powers 129
FpXQXQ_sqr 20948
FpXQXV_prod 172
FpXQX_FpXQXQV_eval 157
FpXQX_FpXQXQ_eval 132
FpXQX_FpXQ_mul 78064
FpXQX_digits 322
FpXQX_div_by_X_x 5831
FpXQX_divrem 349356
FpXQX_divrem_Barrett 0
FpXQX_divrem_Barrett_noGC 2744
FpXQX_divrem_Barrettspec 5222
FpXQX_divrem_basecase 383164
FpXQX_extgcd 6646
FpXQX_fromdigits 105
FpXQX_gcd 30677
FpXQX_invBarrett 2744
FpXQX_invBarrett_Newton 1946
FpXQX_invBarrett_basecase 798
FpXQX_mul 398335
FpXQX_mulspec 432502
FpXQX_powu 14
FpXQX_recipspec 10444
FpXQX_red 226687
FpXQX_rem 42333
FpXQX_rem_Barrett 0
FpXQX_sqr 22999
FpXX_FpX_mul 5392
FpXX_FpX_mulspec 12860
FpXX_Fp_mul 103441
FpXX_add 562453
FpXX_mulu 45898
FpXX_neg 73
FpXX_red 73275
FpXX_sub 33581
FpXX_subspec 5222
FpXYQQ_mul 42
FpXYQQ_pow 1428
FpXYQQ_redswap 112
FpXYQQ_sqr 70
FpXY_FpXQV_evalx 351
FpXY_FpXQ_evalx 63
FpXY_FpY_mulspec 7468
FpXY_eval 9373
FpXY_evalx 17857
FpXY_evaly 12244
Fq_addmul 11662
Kronecker_to_FpXQX 445384
Kronecker_to_ZXX 125727
ZXX_copy 224
ZXX_is_ZX 22999
ZXX_is_ZX_spec 888003
ZXX_lgrenormalizespec 45241
ZXX_mul_Kronecker 204680
ZXX_sqr_Kronecker 2170
_FpXQXQ_add 5105
_FpXQXQ_cmul 5394
_FpXQXQ_mul 3834
_FpXQXQ_one 1410
_FpXQXQ_red 1411
_FpXQXQ_sqr 18288
_FpXQXQ_zero 0
_FpXQX_add 1162
_FpXQX_divrem 9114
_FpXQX_mul 2183
_FpXQX_sqr 1449
to_FlxqX 333988

Generated by: LCOV version 1.9