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 19608-b7b365e) Lines: 1254 1376 91.1 %
Date: 2016-09-26 05:54:43 Functions: 138 148 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Kronecker_to_mod 189
QXQV_to_mod 855
QXQXV_to_mod 525
QXQX_to_mod 1883
QXQX_to_mod_shallow 82992
QXQ_powers 1386
QXQ_to_mod 407964
QXQ_to_mod_copy 13892
QXV_QXQ_eval 770
QXX_QXQ_eval 42
QX_ZXQV_eval 1722
RgM_to_RgXV 35098
RgM_to_RgXX 15379
RgV_to_RgM 5943
RgV_to_RgX 365388
RgV_to_RgX_reverse 149950
RgXQC_red 0
RgXQV_RgXQ_mul 42
RgXQV_red 42
RgXQX_RgXQ_mul 28
RgXQX_divrem 21985
RgXQX_mul 1645
RgXQX_pseudodivrem 24172
RgXQX_pseudorem 68340
RgXQX_red 5558
RgXQX_sqr 0
RgXQX_translate 6069
RgXQ_matrix_pow 287
RgXQ_minpoly_naive 56
RgXQ_norm 34088
RgXQ_pow 2477
RgXQ_powers 1694
RgXQ_powu 180508
RgXV_RgV_eval 105
RgXV_to_RgM 5154
RgXV_unscale 189
RgXX_to_RgM 21
RgXY_degreex 1
RgXY_swap 224
RgXY_swapspec 16678
RgX_RgV_eval 5257
RgX_RgXQV_eval 0
RgX_RgXQ_eval 44457
RgX_RgXnV_eval 672
RgX_RgXn_eval 0
RgX_Rg_add 10396756
RgX_Rg_add_shallow 2436
RgX_Rg_div 21897374
RgX_Rg_divexact 1073751
RgX_Rg_eval_bk 0
RgX_Rg_mul 64239842
RgX_Rg_sub 32089
RgX_add 16268604
RgX_blocks 69776
RgX_deflate 70615
RgX_deriv 266239
RgX_div_by_X_x 30026
RgX_divrem 12697524
RgX_divs 1729
RgX_equal 3802028
RgX_even_odd 22566
RgX_get_0 110887
RgX_get_1 215320
RgX_inflate 104573
RgX_mul 10893714
RgX_mulXn 2580149
RgX_mul_normalized 413860
RgX_muls 231
RgX_mulspec 12634857
RgX_mulspec_basecase 11981741
RgX_mulspec_basecase_limb 70667762
RgX_neg 1233164
RgX_normalize 1449
RgX_pseudodivrem 24053
RgX_pseudorem 68340
RgX_recip 63847
RgX_recip_shallow 431274
RgX_recipspec_shallow 293110
RgX_renormalize_lg 313775
RgX_rescale 1099
RgX_rotate_shallow 310303
RgX_shift 3346181
RgX_shift_shallow 54493939
RgX_splitting 40446
RgX_sqr 250080
RgX_sqrspec 250986
RgX_sqrspec_basecase 250533
RgX_sqrspec_basecase_limb 2703916
RgX_sub 9891256
RgX_to_RgC 3747360
RgX_translate 964211
RgX_unscale 3185
RgX_val 2070112
RgX_valrem 40392435
RgX_valrem_inexact 3019
RgXnV_red_shallow 336
RgXn_eval 1414
RgXn_exp 0
RgXn_inv 462
RgXn_mul 3508579
RgXn_mul_basecase 3051115
RgXn_powers 336
RgXn_powu 0
RgXn_powu_i 1505
RgXn_red_shallow 4329
RgXn_reverse 84
RgXn_sqr 1967
RgXn_sqr_basecase 665
RgXspec_kill0 30316888
Rg_RgX_sub 312449
Rg_to_RgC 25228
ZXQX_dvd 1127
ZX_translate 34451
ZX_unscale 7378
ZX_unscale2n 8183
ZX_unscale_div 154
_add 69559
_cmul 114590
_gen_add 32928970
_gen_cmul 16135
_gen_mul 549740
_gen_nored 527922
_gen_one 538464
_gen_sqr 177088
_gen_sub 0
_gen_zero 84
_mul 79725
_mulXn 1176
_one 105889
_oneXn 1407
_red 72590
_sqr 190432
_sqrXn 1785
_sub 0
_zero 105
_zeroXn 0
addmulXn 1851796
addmulXncopy 583219
addpol 2796582
addpolcopy 290853
addshiftpol 114351
brent_kung_optpow 1973811
do_QXQ_eval 812
gen_RgXQ_eval_powers 8194441
gen_bkeval 1029414
gen_bkeval_powers 5078195
get_Rg_algebra 67043
rem 914416

Generated by: LCOV version 1.11