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 20916-a74d914) Lines: 1241 1332 93.2 %
Date: 2017-08-18 06:23:59 Functions: 144 149 96.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpVV_polint_tree 1
FpV_FpM_polint 0
FpV_inv 4860
FpV_invVandermonde 2436
FpV_polint 1
FpV_producttree 2437
FpV_roots_to_pol 5978
FpXC_FpXQV_eval 854
FpXM_FpXQV_eval 308
FpXM_FpX_mul2 169
FpXM_mul2 169
FpXQM_autsum 140
FpXQM_autsum_mul 308
FpXQM_autsum_sqr 210
FpXQ_autpow 514
FpXQ_autpow_mul 7
FpXQ_autpow_sqr 542
FpXQ_autpowers 770
FpXQ_autsum 795
FpXQ_autsum_mul 1551
FpXQ_autsum_sqr 809
FpXQ_auttrace 14
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpXQ_charpoly 1
FpXQ_conjvec 8
FpXQ_div 227100
FpXQ_inv 292421
FpXQ_invsafe 292442
FpXQ_issquare 3255
FpXQ_log 81728
FpXQ_matrix_pow 565
FpXQ_minpoly 4103
FpXQ_mul 40141190
FpXQ_norm 3179
FpXQ_order 30
FpXQ_pow 517289
FpXQ_pow_Frobenius 105312
FpXQ_powers 183832
FpXQ_powu 66502
FpXQ_red 3202657
FpXQ_sqr 3456157
FpXQ_sqrt 11771
FpXQ_sqrtn 12279
FpXQ_trace 21092
FpXQ_transmul 123
FpXQ_transmul_init 30
FpXT_red 1113334
FpXV_FpX_fromdigits 2296
FpXV_prod 23208
FpXV_red 291113
FpX_FpV_multieval 0
FpX_FpV_multieval_tree 2437
FpX_FpXM_qmul 165
FpX_FpXQV_eval 129901
FpX_FpXQ_eval 172962
FpX_Fp_add 550048
FpX_Fp_add_shallow 0
FpX_Fp_mul 3346600
FpX_Fp_mul_to_monic 46791
FpX_Fp_mulspec 3352284
FpX_Fp_sub 304495
FpX_Fp_sub_shallow 1557
FpX_Frobenius 207003
FpX_add 8039721
FpX_addmulmul 346
FpX_center 713811
FpX_chinese_coprime 980
FpX_deriv 639383
FpX_digits 5642
FpX_disc 28
FpX_div_by_X_x 25683
FpX_divrem 4140869
FpX_divrem_Barrett_noGC 100399
FpX_divrem_Barrettspec 100766
FpX_divrem_basecase 62845117
FpX_dotproduct 566
FpX_eval 409119
FpX_extgcd 372235
FpX_extgcd_basecase 245632
FpX_extgcd_halfgcd 4
FpX_gcd 448072
FpX_gcd_basecase 52698
FpX_gcd_check 106
FpX_get_red 381476
FpX_halfgcd 468
FpX_halfgcd_basecase 191
FpX_halfgcd_i 356
FpX_halfgcd_split 165
FpX_halve 1083
FpX_invBarrett 2616
FpX_invBarrett_Newton 1132
FpX_invBarrett_basecase 1453
FpX_is_squarefree 2513
FpX_matFrobenius 355
FpX_mul 46596181
FpX_mulspec 1668942
FpX_mulu 1181508
FpX_neg 73881
FpX_normalize 272580
FpX_powu 277634
FpX_recipspec 202756
FpX_red 68322514
FpX_rem 62379802
FpX_rescale 13489
FpX_resultant 5848
FpX_sqr 3552456
FpX_sub 6429796
FpX_subspec 6530565
FpX_valrem 23996
FpXn_mul 108
Fp_FpXQ_log 14028
Fp_FpX_sub 8805
Fp_issquare 92120
Fp_neg_FpX 22
Fp_red_FpX 6738
FqV_inv 0
Fq_ispower 133
Fq_issquare 92064
Fq_log 391888
ZX_lgrenormalizespec 225011
Z_to_FpX 1710
_FpXQ_add 1086250
_FpXQ_cmul 1219337
_FpXQ_easylog 1416
_FpXQ_mul 872518
_FpXQ_one 318570
_FpXQ_pow 104609
_FpXQ_rand 3230
_FpXQ_red 367908
_FpXQ_sqr 2989589
_FpXQ_sub 57554
_FpXQ_zero 3537
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 78670
_FpX_sqr 57575
bounded_order 5207
gener_FpXQ 9025
gener_FpXQ_i 1472
gener_FpXQ_local 1449
get_FpXQ_algebra 13559
get_FpXQ_star 1769
get_FpX_algebra 0
get_FpX_red 66520699
matid2_FpXM 4
random_FpX 19002
to_Flx 40998954
to_Flxq 818892

Generated by: LCOV version 1.11