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 - RgX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18906-a425091) Lines: 1233 1370 90.0 %
Date: 2016-05-05 Functions: 138 146 94.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 814 1004 81.1 %

Function Name Sort by function name Hit count Sort by hit count
Kronecker_to_mod 189
QXQV_to_mod 812
QXQXV_to_mod 525
QXQX_to_mod 1883
QXQX_to_mod_shallow 67935
QXQ_powers 1351
QXQ_to_mod 291602
QXQ_to_mod_copy 13776
QXV_QXQ_eval 735
QXX_QXQ_eval 42
QX_ZXQV_eval 1652
RgM_to_RgXV 35216
RgM_to_RgXX 15050
RgV_to_RgM 6146
RgV_to_RgX 345678
RgV_to_RgX_reverse 149838
RgXQC_red 0
RgXQV_RgXQ_mul 42
RgXQV_red 42
RgXQX_RgXQ_mul 14
RgXQX_divrem 39620
RgXQX_mul 9478
RgXQX_pseudodivrem 262595
RgXQX_pseudorem 68964
RgXQX_red 23849
RgXQX_sqr 0
RgXQX_translate 6027
RgXQ_matrix_pow 287
RgXQ_minpoly_naive 56
RgXQ_norm 23911
RgXQ_pow 3130
RgXQ_powers 1659
RgXQ_powu 181803
RgXV_RgV_eval 105
RgXV_to_RgM 4881
RgXV_unscale 161
RgXX_to_RgM 21
RgXY_degreex 288496
RgXY_swap 224
RgXY_swapspec 21328
RgX_RgV_eval 5257
RgX_RgXQV_eval 0
RgX_RgXQ_eval 43631
RgX_RgXnV_eval 672
RgX_RgXn_eval 0
RgX_Rg_add 10640379
RgX_Rg_add_shallow 2380
RgX_Rg_div 22153803
RgX_Rg_divexact 1694731
RgX_Rg_eval_bk 0
RgX_Rg_mul 65850079
RgX_Rg_sub 30675
RgX_add 17436157
RgX_blocks 69244
RgX_deflate 65405
RgX_deriv 307035
RgX_div_by_X_x 30395
RgX_divrem 13157930
RgX_divs 1729
RgX_equal 4118064
RgX_even_odd 22181
RgX_get_0 7560
RgX_get_1 331298
RgX_inflate 100883
RgX_mul 10902407
RgX_mulXn 2580051
RgX_mul_normalized 414461
RgX_muls 231
RgX_mulspec 12563941
RgX_mulspec_basecase 11810011
RgX_mulspec_basecase_limb 61142090
RgX_neg 1332726
RgX_normalize 1449
RgX_pseudodivrem 262476
RgX_pseudorem 68964
RgX_recip 63847
RgX_recip_shallow 1153781
RgX_recipspec_shallow 246951
RgX_renormalize_lg 310093
RgX_rescale 1351
RgX_rotate_shallow 306915
RgX_shift 3346090
RgX_shift_shallow 54438793
RgX_splitting 40180
RgX_sqr 255473
RgX_sqrspec 256437
RgX_sqrspec_basecase 255955
RgX_sqrspec_basecase_limb 2715366
RgX_sub 10120615
RgX_to_RgC 2796009
RgX_translate 967011
RgX_unscale 3626
RgX_val 1966121
RgX_valrem 40353861
RgX_valrem_inexact 2885
RgXnV_red_shallow 336
RgXn_eval 1491
RgXn_exp 0
RgXn_inv 294
RgXn_mul 2658109
RgXn_mul_basecase 2445946
RgXn_powers 336
RgXn_powu 0
RgXn_powu_i 56
RgXn_red_shallow 3804
RgXn_reverse 84
RgXn_sqr 406
RgXn_sqr_basecase 14
RgXspec_kill0 28767787
Rg_RgX_sub 439875
Rg_to_RgC 26922
ZXQX_dvd 1127
ZX_translate 33359
ZX_unscale 6300
ZX_unscale2n 7959
ZX_unscale_div 154
_add 68677
_cmul 112896
_gen_add 32692708
_gen_cmul 16135
_gen_mul 490940
_gen_nored 458909
_gen_one 467330
_gen_sqr 158608
_gen_zero 84
_mul 81551
_mulXn 749
_one 104181
_oneXn 1407
_red 71701
_sqr 193781
_sqrXn 315
_zero 91
_zeroXn 0
addmulXn 1821395
addmulXncopy 555982
addpol 2715164
addpolcopy 263085
addshiftpol 116879
brent_kung_optpow 1707022
do_QXQ_eval 777
gen_RgXQ_eval_powers 7225285
gen_bkeval 961606
gen_bkeval_powers 4366562
get_Rg_algebra 54149
rem 2234009

Generated by: LCOV version 1.9