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 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.10.0 lcov report (development 21188-db834f2) Lines: 1247 1341 93.0 %
Date: 2017-10-20 06:23:07 Functions: 144 149 96.6 %
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_Fp_add_shallow 0
FqV_inv 0
get_FpX_algebra 0
FpXQ_charpoly 1
FpX_extgcd_halfgcd 4
matid2_FpXM 4
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpVV_polint_tree 8
FpV_polint 8
FpXQ_conjvec 8
FpXQ_autpow_mul 14
FpXQ_auttrace 14
FpX_disc 28
FpXQ_order 30
Fq_ispower 56
FpXQ_transmul_init 72
FpX_gcd_check 106
Fp_neg_FpX 130
FpXQM_autsum 140
FpX_FpXM_qmul 165
FpX_halfgcd_split 165
FpXM_FpX_mul2 169
FpXM_mul2 169
FpXn_mul 199
FpXQM_autsum_sqr 210
FpX_halfgcd_basecase 212
FpXQ_transmul 235
FpXM_FpXQV_eval 308
FpXQM_autsum_mul 308
FpX_addmulmul 346
FpX_halfgcd_i 377
FpX_halfgcd 489
FpX_matFrobenius 544
FpXQ_autpow 577
FpXQ_autpow_sqr 605
FpXQ_autpowers 770
FpXC_FpXQV_eval 854
FpX_dotproduct 860
FpXQ_matrix_pow 894
FpXQ_autsum 935
FpXQ_autsum_sqr 970
FpX_chinese_coprime 980
FpX_halve 1118
FpX_invBarrett_Newton 1119
_FpXQ_easylog 1395
gener_FpXQ_local 1449
FpX_invBarrett_basecase 1453
gener_FpXQ_i 1472
FpX_Fp_sub_shallow 1564
Z_to_FpX 1710
FpXQ_autsum_mul 1845
get_FpXQ_star 1923
FpXV_FpX_fromdigits 2296
FpV_invVandermonde 2436
FpV_producttree 2444
FpX_FpV_multieval_tree 2444
FpX_is_squarefree 2534
FpX_invBarrett 2604
FpXQ_norm 3179
FpXQ_issquare 3255
_FpXQ_rand 3503
_FpXQ_zero 3556
FpXQ_minpoly 4124
FpV_inv 4867
FpX_digits 5642
bounded_order 5648
FpX_resultant 5848
FpV_roots_to_pol 6132
Fp_red_FpX 6780
gener_FpXQ 9025
_FpX_add 10241
Fp_FpX_sub 10599
FpXQ_sqrt 11820
FpXQ_sqrtn 12230
FpX_rescale 13489
get_FpXQ_algebra 13559
Fp_FpXQ_log 14000
random_FpX 19027
FpXQ_trace 21086
FpXV_prod 23308
FpX_valrem 23996
FpX_div_by_X_x 25683
FpX_Fp_mul_to_monic 48325
FpX_gcd_basecase 54395
_FpX_sqr 57043
_FpXQ_sub 57554
FpXQ_powu 66509
_FpX_divrem 69706
_FpX_mul 79316
FpX_neg 80018
FpXQ_log 81735
Fq_issquare 92064
Fp_issquare 92120
FpX_divrem_Barrett_noGC 100310
FpX_divrem_Barrettspec 100678
_FpXQ_pow 105575
FpXQ_pow_Frobenius 106264
FpX_FpXQV_eval 130194
FpX_FpXQ_eval 173362
FpXQ_powers 184524
FpX_recipspec 202691
FpX_Frobenius 207381
ZX_lgrenormalizespec 224573
FpXQ_div 227548
FpX_extgcd_basecase 255407
FpX_powu 272426
FpX_normalize 274232
FpXV_red 291113
FpXQ_inv 300719
FpXQ_invsafe 300740
FpX_Fp_sub 305131
_FpXQ_one 320920
_FpXQ_red 369629
FpX_extgcd 380302
FpX_get_red 384846
Fq_log 391888
FpX_eval 410260
FpX_gcd 449788
FpXQ_pow 518396
FpX_Fp_add 550266
FpX_deriv 641044
FpX_center 714176
to_Flxq 818374
_FpXQ_mul 895314
_FpXQ_add 1089012
FpXT_red 1113082
FpX_mulu 1185764
_FpXQ_cmul 1222773
FpX_mulspec 1971944
_FpXQ_sqr 3138254
FpX_Fp_mul 3366907
FpX_Fp_mulspec 3373303
FpXQ_red 3432200
FpXQ_sqr 3604887
FpX_sqr 3700107
FpX_divrem 3921216
FpX_sub 6881701
FpX_subspec 6982379
FpX_add 8337549
FpX_red 33559335
FpXQ_mul 40188214
FpX_mul 46574638
FpX_rem 63316343
FpX_divrem_basecase 63518944
get_FpX_red 67237631
to_Flx 76627222

Generated by: LCOV version 1.11