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 to exceed 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 - FlxX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29806-4d001396c7) Lines: 1195 1473 81.1 %
Date: 2024-12-21 09:08:57 Functions: 149 195 76.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FlxXC_sub 0
FlxXM_to_ZXXM 0
FlxXV_to_FlxM 0
FlxX_Flx_mul 0
FlxX_translate1 0
FlxX_triple 0
FlxY_Flx_translate 0
FlxY_FlxqV_evalx 0
FlxY_Flxq_evalx 0
FlxY_Flxq_evalx_pre 0
FlxqXC_FlxqXQV_eval 0
FlxqXC_FlxqXQV_eval_pre 0
FlxqXC_FlxqXQ_eval 0
FlxqXQ_autpow 0
FlxqXQ_autsum 0
FlxqXQ_auttrace 0
FlxqXQ_div 0
FlxqXQ_div_pre 0
FlxqXQ_invsafe 0
FlxqXQ_matrix_pow 0
FlxqXQ_powers 0
FlxqXQ_powu 0
FlxqXQ_sqr 0
FlxqX_FlxqXQV_eval 0
FlxqX_FlxqXQ_eval 0
FlxqX_Flxq_mul 0
FlxqX_Flxq_mul_to_monic 0
FlxqX_Newton 0
FlxqX_eval 0
FlxqX_fromNewton 0
FlxqX_halfgcd 0
FlxqX_halfres 0
FlxqX_halfres_update 0
FlxqX_powu 0
FlxqX_red 0
FlxqXn_expint 0
FlxqXn_inv 0
FlxqXn_mul 0
FlxqXn_sqr 0
FlxqXn_sqr_pre 0
Kronecker_to_FlxqX 0
ZXXV_to_FlxXV 0
_FlxqXQ_add 0
matJ2_FlxXM 0
matid2_FlxXM 0
zlxX_translate1 0
FlxqX_halfgcd_all 7
FlxqXQ_inv 14
FlxqXQ_inv_pre 14
FlxqXQ_invsafe_pre 14
FlxqX_disc 14
FlxqXQ_auttrace_sqr 20
FlxqXQ_auttrace_mul 27
FlxqXQ_pow 35
FlxqX_resultant 56
FlxqX_resultant_basecase 56
FlxqX_resultant_pre 56
FlxqXQ_minpoly 62
FlxqX_invBarrett 76
FlxqXQ_pow_pre 91
FlxqX_extgcd_halfgcd 130
FlxqX_normalize 133
FlxY_evalx 231
FlxX_Flx_add 245
FlxqXQ_minpoly_pre 262
_FlxqXQ_zero 316
FlxqX_halfgcd_pre 320
polxn_FlxX 320
FlxqX_get_red 371
FlxqXQ_auttrace_pre 375
ZXXT_to_FlxXT 512
FlxqXQ_transmul_init 640
random_FlxqX 695
FlxX_Fl_mul 761
FlxX_double 761
get_FlxqXQ_algebra 761
FlxqX_halfgcd_all_i 844
FlxqX_halfgcd_all_pre 844
FlxX_Laplace 1195
FlxqX_composedsum 1195
FlxqX_fromNewton_pre 1195
FlxqXn_expint_pre 1195
FlxqX_sqr 1260
FlxqX_invBarrett_basecase 1340
FlxqXQ_transmul 1364
FlxqXQ_mul 1947
FlxX_invLaplace 2390
FlxqX_Newton_pre 2390
FlxqXn_inv_pre 2390
Fly_to_FlxY 2529
FlxX_neg 2636
FlxqXM_mul2 3289
FlxqX_FlxqXM_qmul 3289
FlxqX_halfres_split 3362
FlxqXQ_autpow_mul 3735
FlxqX_halfres_basecase 4133
FlxX_integXn 4741
_FlxqXQ_sub 5526
FlxqX_rem 5949
FlxXn_recip 5975
_FlxqXQ_red 6044
FlxqXM_FlxqX_mul2 6651
FlxqX_invBarrett_Newton 6697
FlxqX_halfres_i 7495
FlxY_Flx_div 7559
FlxqX_invBarrett_pre 8037
FlxqX_saferesultant 9010
FlxqX_powu_pre 10248
_FlxqX_sqr 10283
FlxYqq_mul 10316
FlxX_Flx_sub 11729
FlxqXQ_autsum_pre 12192
FlxXC_to_ZXXC 12551
FlxX_blocks 13028
FlxqXn_mulhigh 13028
FlxqX_addmulmul 13580
FlxqX_mulhigh_i 17768
FlxqXQ_autsum_sqr 18841
FlxqX_gcd 23646
FlxqXQ_autsum_mul 30428
FlxqV_roots_to_deg1 32145
FlxqV_roots_to_pol 32145
FlxYqq_pow 39197
FlxqXn_mul_pre 39970
FlxqX_div_by_X_x 53700
FlxqX_div_by_X_x_pre 53700
FlxX_to_Flm 55428
FlxqX_mul 63691
FlxXn_red 65508
FlxqXQ_autpow_pre 69303
FlxX_shift 71728
FlxqXQ_autpow_sqr 72666
FlxqX_FlxqXQ_eval_pre 76763
FlxYqq_sqr 80428
FlxqXQ_powu_pre 82153
FlxX_deriv 82648
FlxqX_safegcd 89130
FlxYqq_redswap 90743
FlxqX_divrem_Barrett 102410
Flxq_addmul_pre 107400
FlxqXQ_powers_pre 108743
FlxX_subspec 109012
FlxqX_divrem_Barrettspec 109285
_FlxqXQ_one 111778
FlxqX_extgcd 133814
FlxqX_extgcd_basecase 133823
FlxqX_extgcd_pre 133828
FlxY_FlxqV_evalx_pre 137257
FlxXV_to_FlxM_lg 139284
FlxX_blocks_FlxM 139284
FlxqX_FlxqXQV_eval_pre 139284
RgX_to_FlxqX 152661
FlxqX_Flxq_mul_pre 155107
FlxqX_gcd_basecase 166986
FlxqX_gcd_pre 176128
_FlxqXQ_mul 180037
FlxX_swap 181477
FlxqX_normalize_pre 190401
Flm_to_FlxX 221464
FlxqXV_prod 223086
FlxX_recipspec 233162
_FlxqXQ_sqr 263448
FlxqXQ_sqr_pre 263889
FlxqX_mulspec 290346
FlxX_to_FlxC 323942
FlxX_lgrenormalizespec 325174
FlxX_add 346159
FlxqX_sqr_pre 355860
FlxqX_saferem 356518
FlxX_to_Flx 365351
FlxqXQ_mul_pre 470036
FlxqX_get_red_pre 493432
_FlxqX_mul 538490
FlxX_sub 624863
FlxqX_Flxq_mul_to_monic_pre 636056
polx_FlxX 690449
pol1_FlxX 760924
FlxqX_divrem 1074065
FlxqX_red_pre 1260819
FlxqX_divrem_pre 1576737
FlxqX_mul_pre 1709662
FlxqX_rem_pre 2016211
Kronecker_to_FlxqX_pre 2355810
zxX_to_FlxX 2687667
FlxX_to_ZXX 2772679
ZXX_to_FlxX 2816122
FlxY_degreex 2892062
FlxqX_divrem_basecase 3145726
get_FlxqX_red 3593593
zxX_to_Kronecker 3775127
zxX_to_Kronecker_spec 4355807
FlxY_evalx_pre 5574221
FlxY_eval_powers_pre 6826740
FlxY_evalx_powers_pre 10171419
FlxX_renormalize 15236240

Generated by: LCOV version 1.16