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 16624-25b9976) Lines: 1158 1340 86.4 %
Date: 2014-06-24 Functions: 123 132 93.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 767 992 77.3 %

Function Name Sort by function name Hit count Sort by hit count
Kronecker_to_mod 0
QXQV_to_mod 115
QXQXV_to_mod 205
QXQX_to_mod 810
QXQX_to_mod_shallow 3765
QXQ_powers 470
QXQ_to_mod 10990
QXQ_to_mod_copy 6265
QXV_QXQ_eval 115
QXX_QXQ_eval 20
QX_ZXQV_eval 435
RgM_to_RgXV 22058
RgM_to_RgXX 410
RgV_to_RgM 2095
RgV_to_RgX 167633
RgV_to_RgX_reverse 72510
RgXQC_red 0
RgXQV_RgXQ_mul 30
RgXQV_red 30
RgXQX_RgXQ_mul 10
RgXQX_divrem 9074
RgXQX_mul 2260
RgXQX_pseudodivrem 135517
RgXQX_pseudorem 15007
RgXQX_red 7420
RgXQX_sqr 0
RgXQX_translate 275
RgXQ_matrix_pow 135
RgXQ_minpoly_naive 5
RgXQ_norm 16316
RgXQ_pow 475
RgXQ_powers 625
RgXQ_powu 94287
RgXV_to_RgM 8940
RgXV_unscale 100
RgXX_to_RgM 15
RgXY_swap 160
RgXY_swapspec 6672
RgX_RgXQV_eval 0
RgX_RgXQ_eval 11194
RgX_RgXnV_eval 480
RgX_RgXn_eval 0
RgX_Rg_add 6833070
RgX_Rg_add_shallow 1682
RgX_Rg_div 16156082
RgX_Rg_divexact 497230
RgX_Rg_mul 43606850
RgX_Rg_sub 20393
RgX_add 9539381
RgX_blocks 25000
RgX_deflate 23941
RgX_deriv 71643
RgX_div_by_X_x 16060
RgX_divrem 8586443
RgX_divs 195
RgX_equal 565627
RgX_even_odd 9710
RgX_get_0 1055
RgX_get_1 106442
RgX_inflate 39855
RgX_mul 6334015
RgX_mulXn 1882786
RgX_mul_normalized 121570
RgX_muls 130
RgX_mulspec 7406746
RgX_mulspec_basecase 6927656
RgX_mulspec_basecase_limb 27728398
RgX_neg 490867
RgX_normalize 30
RgX_pseudodivrem 135492
RgX_pseudorem 15007
RgX_recip 10
RgX_recip_shallow 497757
RgX_recipspec_shallow 87262
RgX_renormalize_lg 115565
RgX_rescale 500
RgX_rotate_shallow 115205
RgX_shift 2505980
RgX_shift_shallow 38566953
RgX_splitting 14555
RgX_sqr 113454
RgX_sqrspec 113526
RgX_sqrspec_basecase 113490
RgX_sqrspec_basecase_limb 1015542
RgX_sub 4934978
RgX_to_RgC 679670
RgX_translate 122205
RgX_unscale 1490
RgX_val 848159
RgX_valrem 29272484
RgX_valrem_inexact 845
RgXnV_red_shallow 240
RgXn_eval 45
RgXn_exp 0
RgXn_inv 0
RgXn_mul 91805
RgXn_mul_basecase 87550
RgXn_powers 240
RgXn_red_shallow 1475
RgXn_reverse 60
RgXn_sqr 190
RgXn_sqr_basecase 0
RgXspec_kill0 14143892
Rg_RgX_sub 247397
Rg_to_RgC 10945
ZXQX_dvd 345
ZX_translate 18649
ZX_unscale 3339
ZX_unscale2n 4099
ZX_unscale_div 105
_add 26338
_cmul 38012
_mul 36900
_mulXn 545
_one 31540
_oneXn 1030
_red 26641
_sqr 88867
_sqrXn 190
_zero 10
_zeroXn 0
addmulXn 781862
addmulXncopy 358155
addpol 1394592
addpolcopy 139224
addshiftpol 14883
brent_kung_optpow 491204
do_QXQ_eval 135
gen_RgXQ_eval_powers 3155281
gen_bkeval 555711
gen_bkeval_powers 1785453
rem 986658

Generated by: LCOV version 1.9