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 29644-f1a46412a2) Lines: 1195 1473 81.1 %
Date: 2024-10-12 09:06:38 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 2515
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 7515
FlxqX_invBarrett_pre 8037
FlxqX_saferesultant 8630
FlxqX_powu_pre 10248
_FlxqX_sqr 10283
FlxYqq_mul 10302
FlxX_Flx_sub 11728
FlxqXQ_autsum_pre 12191
FlxXC_to_ZXXC 12481
FlxX_blocks 13028
FlxqXn_mulhigh 13028
FlxqX_addmulmul 13580
FlxqX_mulhigh_i 17764
FlxqXQ_autsum_sqr 18838
FlxqX_gcd 23450
FlxqXQ_autsum_mul 30423
FlxqV_roots_to_deg1 32140
FlxqV_roots_to_pol 32140
FlxYqq_pow 39184
FlxqXn_mul_pre 39972
FlxqX_div_by_X_x 53700
FlxqX_div_by_X_x_pre 53700
FlxX_to_Flm 54686
FlxqX_mul 63691
FlxXn_red 65507
FlxqXQ_autpow_pre 69296
FlxX_shift 71731
FlxqXQ_autpow_sqr 72659
FlxqX_FlxqXQ_eval_pre 76756
FlxYqq_sqr 80414
FlxqXQ_powu_pre 82145
FlxX_deriv 82255
FlxqX_safegcd 88554
FlxYqq_redswap 90716
FlxqX_divrem_Barrett 102410
Flxq_addmul_pre 107400
FlxqXQ_powers_pre 108731
FlxX_subspec 109012
FlxqX_divrem_Barrettspec 109285
_FlxqXQ_one 111766
FlxqX_extgcd 133811
FlxqX_extgcd_basecase 133821
FlxqX_extgcd_pre 133825
FlxY_FlxqV_evalx_pre 137240
FlxXV_to_FlxM_lg 139267
FlxX_blocks_FlxM 139267
FlxqX_FlxqXQV_eval_pre 139267
RgX_to_FlxqX 151815
FlxqX_Flxq_mul_pre 155094
FlxqX_gcd_basecase 166775
FlxqX_gcd_pre 175917
_FlxqXQ_mul 180025
FlxX_swap 181428
FlxqX_normalize_pre 189721
Flm_to_FlxX 219975
FlxqXV_prod 223082
FlxX_recipspec 233162
_FlxqXQ_sqr 263421
FlxqXQ_sqr_pre 263862
FlxqX_mulspec 290346
FlxX_to_FlxC 323905
FlxX_lgrenormalizespec 325174
FlxX_add 346160
FlxqX_saferem 354680
FlxqX_sqr_pre 355819
FlxX_to_Flx 363867
FlxqXQ_mul_pre 470019
FlxqX_get_red_pre 493372
_FlxqX_mul 538476
FlxX_sub 624852
FlxqX_Flxq_mul_to_monic_pre 632960
polx_FlxX 690442
pol1_FlxX 760906
FlxqX_divrem 1073994
FlxqX_red_pre 1259729
FlxqX_divrem_pre 1576634
FlxqX_mul_pre 1709600
FlxqX_rem_pre 2014010
Kronecker_to_FlxqX_pre 2355710
zxX_to_FlxX 2677750
FlxX_to_ZXX 2772075
ZXX_to_FlxX 2813205
FlxY_degreex 2881589
FlxqX_divrem_basecase 3143482
get_FlxqX_red 3591283
zxX_to_Kronecker 3774965
zxX_to_Kronecker_spec 4355645
FlxY_evalx_pre 5571614
FlxY_eval_powers_pre 6815312
FlxY_evalx_powers_pre 10153553
FlxX_renormalize 15215204

Generated by: LCOV version 1.16