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-bordeaux1.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.8.0 lcov report (development 17910-ca0bb25) Lines: 1027 1101 93.3 %
Date: 2015-07-07 Functions: 131 134 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 497 628 79.1 %

Function Name Sort by function name Hit count Sort by hit count
FpV_inv 2423
FpV_roots_to_pol 4839
FpXC_FpXQV_eval 378
FpXM_FpXQV_eval 84
FpXM_FpX_mul2 498
FpXM_mul2 166
FpXQM_autsum 63
FpXQM_autsum_mul 84
FpXQM_autsum_sqr 63
FpXQ_autpow 507
FpXQ_autpow_mul 7
FpXQ_autpow_sqr 535
FpXQ_autpowers 532
FpXQ_autsum 845
FpXQ_autsum_mul 1651
FpXQ_autsum_sqr 859
FpXQ_charpoly 2956
FpXQ_conjvec 8
FpXQ_div 269845
FpXQ_inv 350870
FpXQ_invsafe 351370
FpXQ_issquare 3446
FpXQ_log 58467
FpXQ_matrix_pow 7833
FpXQ_minpoly 2955
FpXQ_mul 38342550
FpXQ_norm 3419
FpXQ_order 38
FpXQ_pow 336039
FpXQ_pow_Frobenius 61572
FpXQ_powers 176599
FpXQ_powu 61845
FpXQ_red 3534905
FpXQ_sqr 2659732
FpXQ_sqrt 7040
FpXQ_sqrtn 7877
FpXQ_trace 20688
FpXT_red 722045
FpXV_prod 18442
FpXV_red 286724
FpX_FpXM_qmul 162
FpX_FpXQV_eval 77960
FpX_FpXQ_eval 162674
FpX_Fp_add 511876
FpX_Fp_add_shallow 0
FpX_Fp_mul 4628057
FpX_Fp_mul_to_monic 53367
FpX_Fp_mulspec 4629205
FpX_Fp_sub 140880
FpX_Fp_sub_shallow 2131
FpX_Frobenius 74582
FpX_add 8413488
FpX_addmulmul 1004
FpX_center 581958
FpX_chinese_coprime 665
FpX_deriv 799676
FpX_digits 5642
FpX_disc 14
FpX_div_by_X_x 18540
FpX_divrem 3816105
FpX_divrem_Barrett_noGC 92536
FpX_divrem_Barrettspec 92976
FpX_divrem_basecase 54920434
FpX_eval 519753
FpX_extgcd 382646
FpX_extgcd_basecase 290961
FpX_extgcd_halfgcd 4
FpX_fromdigits 2296
FpX_gcd 95156
FpX_gcd_basecase 24766
FpX_gcd_check 0
FpX_get_red 239677
FpX_halfgcd 398
FpX_halfgcd_basecase 172
FpX_halfgcd_i 334
FpX_halfgcd_split 162
FpX_halve 875
FpX_invBarrett 2161
FpX_invBarrett_Newton 559
FpX_invBarrett_basecase 1598
FpX_is_squarefree 2212
FpX_matFrobenius 2513
FpX_mul 53163513
FpX_mulspec 345912
FpX_mulu 1186211
FpX_neg 196316
FpX_normalize 243844
FpX_powu 3654
FpX_recipspec 186515
FpX_red 70054491
FpX_rem 54508194
FpX_rescale 13188
FpX_resultant 6031
FpX_sqr 2719863
FpX_sub 14192542
FpX_subspec 14285521
FpX_valrem 23317
Fp_FpXQ_log 37071
Fp_FpX_sub 31909
Fp_issquare 46844
Fp_neg_FpX 52
Fp_red_FpX 2466
FqV_inv 0
Fq_issquare 46641
Fq_log 1575
ZX_lgrenormalizespec 197307
Z_to_FpX 1710
_FpXQ_add 567182
_FpXQ_cmul 647933
_FpXQ_easylog 856
_FpXQ_mul 455945
_FpXQ_one 172650
_FpXQ_pow 61003
_FpXQ_rand 2383
_FpXQ_red 179832
_FpXQ_sqr 2125564
_FpXQ_zero 240
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 65444
_FpX_sqr 24423
bounded_order 3947
gener_FpXQ 6512
gener_FpXQ_i 1444
gener_FpXQ_local 1428
get_FpXQ_star 1279
get_FpX_degree 1379792
get_FpX_mod 429957
get_FpX_red 58324300
get_FpX_var 1233324
matid2_FpXM 4
random_FpX 61864
to_Flx 40865995
to_Flxq 649298

Generated by: LCOV version 1.9