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 - FpX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29419-8afb0ed749) Lines: 1631 1791 91.1 %
Date: 2024-07-02 09:03:41 Functions: 184 197 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_FpM_polint 0
FpX_FpV_multieval 0
FpX_FpXV_multirem 0
FpX_Fp_add_shallow 0
FpX_chinese_coprime 0
FpX_integ 0
FpXn_exp 0
FpXn_sqr 0
FqV_inv 0
_FpX_one 0
_FpX_red 0
_FpX_zero 0
get_FpX_algebra 0
FpXQ_conjvec 8
matJ2_FpXM 8
FpVV_polint_tree 15
FpXQ_charpoly 15
FpXQ_autpow_msqr 21
FpV_polint 22
FpX_extresultant_basecase 24
matid2_FpXM 24
FpX_disc 42
Fq_ispower 70
FpX_extresultant 77
FpX_halfres 106
FpXQM_autsum 147
FpX_invLaplace 158
FpXQM_autsum_sqr 217
FpXM_FpXQV_eval 315
FpXQM_autsum_mul 315
FpXQ_auttrace_sqr 317
FpXQ_auttrace_mul 360
FpXQ_auttrace 444
FpX_Laplace 576
FpXC_FpXQ_eval 588
FpXV_chinese 588
FpXV_chinese_tree 588
FpXV_chinesetree 588
FpXV_invdivexact 588
FpXV_producttree 588
FpXV_sqr 588
FpX_FpXV_multirem_tree 588
gc_chinese 588
_FpXQ_easylog 624
FpX_halfgcd 665
FpX_gcd_check 775
Fp_neg_FpX 935
FpX_convol 994
FpXQ_transmul_init 1036
FpXQ_sqrtn 1441
FpXC_FpXQV_eval 1470
FpX_invBarrett_Newton 1498
Z_to_FpX 1726
FpXQ_autpowers 1764
FpXQ_order 1883
_FpXQ_rand 1959
FpXQ_transmul 2671
get_FpXQ_star 3116
FpX_invBarrett_basecase 3264
FpX_halfres_update 3749
_FpXQ_zero 4123
FpX_resultant_basecase 4227
FpXQ_autsum 4460
FpXQ_autsum_sqr 4530
FpXV_FpX_fromdigits 4564
FpX_invBarrett 4815
FpXQ_autpow 5067
FpXQ_autpow_sqr 5780
FpXQ_autsum_mul 6154
FpXn_div 6412
FpXn_inv 6412
bounded_order 6494
gener_FpXQ 7002
FpXT_sqr 7602
FpX_dotproduct 8046
FpX_divu 8610
get_FpXQ_algebra 10199
FpX_Fp_sub_shallow 11146
FpX_fromNewton 11334
FpX_digits 11403
FpXQ_minpoly 13251
FpX_extgcd_halfgcd 13435
FpX_halfgcd_all_i 15106
FpX_halfgcd_all 15246
FpX_FpXM_qmul 16298
FpXM_mul2 16389
FpXV_factorback 16553
FpXn_expint 17249
FpX_halfres_split 17382
Fp2_norm 19500
Fp2_sqrt 19931
_FpX_add 20062
Fp_red_FpX 21043
FpXQ_trace 21069
Fp_FpX_sub 25683
_FpX_pow 26306
FpV_invVandermonde 31408
FpX_FpV_multieval_tree 31421
FpV_producttree 31423
FpX_matFrobenius 31478
FpX_halfres_basecase 31494
FpX_FpXV_multirem_dbl_tree 32010
FpXV_producttree_dbl 32011
FpXM_FpX_mul2 33664
FpV_inv 33850
FpX_is_squarefree 40810
FpX_halfres_i 48876
FpX_gcd_basecase 52601
_FpXQ_sub 52941
FpX_integXn 55491
FpXn_mulhigh 59410
FpXQ_matrix_pow 66277
FpXQ_sqrt 80929
FpX_addmulmul 81037
gener_FpXQ_local 83311
gener_FpXQ_i 83349
_FpX_sqr 85908
FpV_roots_to_pol 92961
FpX_halve 94891
FpX_mulhigh_i 114901
FpX_Fp_mul_to_monic 132902
_FpX_divrem 134778
FpX_div_by_X_x 164158
FpX_rescale 177336
_FpXQ_pow 178448
FpXQ_pow_Frobenius 193825
FpXn_red 199478
FpX_divrem_Barrett 212925
FpX_divrem_Barrettspec 213673
FpX_valrem 252890
random_FpX 260889
FpXV_prod 306964
FpX_powu 307041
FpX_center 309879
FpXQ_norm 363084
_FpX_mul 366937
FpXQ_powers 383147
FpXQ_issquare 400159
FpXV_red 404005
FpX_FpXQV_eval 407895
FpX_resultant 416660
FpX_recipspec 431931
FpX_Frobenius 443022
ZX_lgrenormalizespec 457901
FpX_neg 467499
FpX_Newton 520499
FpXn_recip 531345
Fp_FpXQ_log 544351
FpX_Fp_sub 588178
FpXQ_powu 604724
FpXQ_div 621539
FpX_extgcd_basecase 675608
FpX_Fp_div 703012
FpXQ_log 708252
FpX_FpXQ_eval 792262
_FpXQ_red 883216
_FpXQ_one 886002
FpXQ_pow 895580
FpX_Fp_add 906675
FpX_get_red 956004
FpX_eval 958201
FpX_shift 959135
FpX_gcd 1010208
FpXQ_inv 1181914
FpXQ_invsafe 1181914
FpX_center_i 1240240
FpX_mulu 1279602
Fp_issquare 1313700
FpX_extgcd 1521509
Fq_issquare 1609871
_FpXQ_mul 1614155
FpX_deriv 1624198
FpXT_red 1663195
FpX_normalize 1830359
to_Flxq 2114126
Fq_log 2193847
_FpXQ_add 2261516
FpXn_mul 2559709
_FpXQ_cmul 2675563
_FpXQ_sqr 5135392
FpX_Fp_mul 5843847
FpX_Fp_mulspec 5858522
FpXQ_sqr 6228056
FpX_sqr 6420085
FpX_mulspec 7997778
FpXQ_mul 11809968
FpX_divrem 14514635
FpX_sub 14747122
FpX_subspec 14960792
FpX_add 16993469
FpXQ_red 17860338
FpX_mul 26848724
to_Flx 44459523
FpX_divrem_basecase 67082292
FpX_rem 71718766
get_FpX_red 86241946
FpX_red 93971976

Generated by: LCOV version 1.16