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 - RgX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17240-4611fa9) Lines: 1181 1341 88.1 %
Date: 2014-12-21 Functions: 125 133 94.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 788 994 79.3 %

Function Name Sort by function name Hit count Sort by hit count
Kronecker_to_mod 0
QXQV_to_mod 805
QXQXV_to_mod 455
QXQX_to_mod 1694
QXQX_to_mod_shallow 50918
QXQ_powers 994
QXQ_to_mod 232571
QXQ_to_mod_copy 12950
QXV_QXQ_eval 448
QXX_QXQ_eval 28
QX_ZXQV_eval 1148
RgM_to_RgXV 32912
RgM_to_RgXX 14763
RgV_to_RgM 3780
RgV_to_RgX 299935
RgV_to_RgX_reverse 113410
RgXQC_red 0
RgXQV_RgXQ_mul 42
RgXQV_red 42
RgXQX_RgXQ_mul 14
RgXQX_divrem 31815
RgXQX_mul 5873
RgXQX_pseudodivrem 202318
RgXQX_pseudorem 21427
RgXQX_red 17675
RgXQX_sqr 0
RgXQX_translate 2296
RgXQ_matrix_pow 224
RgXQ_minpoly_naive 7
RgXQ_norm 23722
RgXQ_pow 1842
RgXQ_powers 1239
RgXQ_powu 132131
RgXV_to_RgM 7567
RgXV_unscale 161
RgXX_to_RgM 21
RgXY_degreex 78392
RgXY_swap 224
RgXY_swapspec 14474
RgX_RgXQV_eval 0
RgX_RgXQ_eval 38409
RgX_RgXnV_eval 672
RgX_RgXn_eval 0
RgX_Rg_add 9679557
RgX_Rg_add_shallow 2380
RgX_Rg_div 22182959
RgX_Rg_divexact 1017262
RgX_Rg_mul 61381221
RgX_Rg_sub 28932
RgX_add 14827776
RgX_blocks 35308
RgX_deflate 38277
RgX_deriv 148421
RgX_div_by_X_x 27538
RgX_divrem 12184054
RgX_divs 273
RgX_equal 3902703
RgX_even_odd 13730
RgX_get_0 7413
RgX_get_1 287835
RgX_inflate 55695
RgX_mul 9024044
RgX_mulXn 2577762
RgX_mul_normalized 170686
RgX_muls 217
RgX_mulspec 10464391
RgX_mulspec_basecase 9801211
RgX_mulspec_basecase_limb 39910492
RgX_neg 814044
RgX_normalize 42
RgX_pseudodivrem 202199
RgX_pseudorem 21427
RgX_recip 7
RgX_recip_shallow 748938
RgX_recipspec_shallow 189913
RgX_renormalize_lg 171073
RgX_rescale 644
RgX_rotate_shallow 170835
RgX_shift 3497437
RgX_shift_shallow 53370944
RgX_splitting 20524
RgX_sqr 177444
RgX_sqrspec 177950
RgX_sqrspec_basecase 177697
RgX_sqrspec_basecase_limb 1515525
RgX_sub 7819221
RgX_to_RgC 920003
RgX_translate 180420
RgX_unscale 2149
RgX_val 1151950
RgX_valrem 40230601
RgX_valrem_inexact 2283
RgXnV_red_shallow 336
RgXn_eval 35
RgXn_exp 0
RgXn_inv 294
RgXn_mul 111587
RgXn_mul_basecase 106190
RgXn_powers 336
RgXn_red_shallow 2947
RgXn_reverse 84
RgXn_sqr 259
RgXn_sqr_basecase 0
RgXspec_kill0 19992429
Rg_RgX_sub 375635
Rg_to_RgC 19320
ZXQX_dvd 1127
ZX_translate 28893
ZX_unscale 5053
ZX_unscale2n 6326
ZX_unscale_div 147
_add 60949
_cmul 100009
_mul 53725
_mulXn 735
_one 91140
_oneXn 1407
_red 62083
_sqr 126532
_sqrXn 259
_zero 28
_zeroXn 0
addmulXn 1089423
addmulXncopy 481129
addpol 1905693
addpolcopy 189012
addshiftpol 21406
brent_kung_optpow 685492
do_QXQ_eval 476
gen_RgXQ_eval_powers 4506688
gen_bkeval 711828
gen_bkeval_powers 2679136
rem 1478411

Generated by: LCOV version 1.9