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 18586-b372913) Lines: 1096 1173 93.4 %
Date: 2016-02-08 Functions: 138 141 97.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 517 652 79.3 %

Function Name Sort by function name Hit count Sort by hit count
FpX_red 62554342
get_FpX_red 60699829
FpX_divrem_basecase 57051394
FpX_rem 56798085
FpX_mul 45342408
to_Flx 41266338
FpXQ_mul 39264607
FpX_add 8801959
FpX_subspec 5071450
FpX_sub 4975551
FpX_Fp_mulspec 4058902
FpX_Fp_mul 4057761
FpX_divrem 3901714
FpX_sqr 3059415
FpXQ_red 3036466
FpXQ_sqr 3000486
_FpXQ_sqr 2473481
get_FpX_degree 1844777
get_FpX_var 1337735
_FpXQ_mul 1273602
FpX_mulu 1188560
_FpXQ_cmul 1088573
_FpXQ_add 988799
FpX_deriv 797372
FpXQ_pow 736344
FpXT_red 722228
FpX_get_red 679096
to_Flxq 658731
FpX_center 653828
FpX_Fp_add 547954
FpX_eval 522684
FpXQ_pow_Frobenius 458085
_FpXQ_pow 457486
get_FpX_mod 455534
FpX_extgcd 384231
FpX_mulspec 353659
FpXQ_invsafe 351282
FpXQ_inv 350790
FpX_extgcd_basecase 288465
FpXV_red 287105
FpXQ_div 267530
_FpXQ_red 253364
FpX_normalize 245408
_FpXQ_one 234282
ZX_lgrenormalizespec 202984
FpX_recipspec 192436
FpXQ_powers 181623
FpX_neg 166228
FpX_FpXQ_eval 163755
FpX_Fp_sub 140723
FpX_gcd 126336
FpX_FpXQV_eval 96786
FpX_divrem_Barrettspec 95898
FpX_divrem_Barrett_noGC 95458
FpXQ_log 83233
FpX_Frobenius 76124
_FpX_divrem 69706
_FpX_mul 66358
FpXQ_powu 62223
random_FpX 61183
FpX_Fp_mul_to_monic 51980
FpX_gcd_basecase 51959
Fp_issquare 46844
Fq_issquare 46641
Fp_FpXQ_log 37561
Fp_FpX_sub 32932
_FpX_sqr 24752
FpX_valrem 23534
FpXQ_trace 20684
FpXV_prod 19106
FpX_div_by_X_x 19000
FpX_rescale 13209
_FpX_add 10241
FpXQ_sqrtn 7939
FpXQ_sqrt 7102
gener_FpXQ 6624
FpX_resultant 6048
FpX_digits 5642
FpX_powu 5166
FpV_roots_to_pol 4929
FpXQ_matrix_pow 3962
bounded_order 3959
FpXQ_issquare 3388
FpXQ_norm 3361
FpXQ_minpoly 3067
FpX_matFrobenius 2639
FpX_is_squarefree 2485
Fp_red_FpX 2466
FpV_inv 2423
_FpXQ_rand 2390
FpX_fromdigits 2296
FpX_invBarrett 1955
Fq_log 1876
FpXQ_autsum_mul 1864
Z_to_FpX 1710
FpX_Fp_sub_shallow 1549
gener_FpXQ_i 1444
gener_FpXQ_local 1428
FpX_invBarrett_basecase 1400
get_FpXQ_star 1269
FpX_addmulmul 1004
FpX_halve 987
FpXQ_autsum_sqr 969
FpXQ_autsum 955
_FpXQ_easylog 757
FpX_chinese_coprime 665
FpXQ_autpowers 581
FpX_dotproduct 566
FpX_invBarrett_Newton 551
FpXQ_autpow_sqr 542
FpXQ_autpow 514
FpXM_FpX_mul2 498
FpX_halfgcd 455
FpXC_FpXQV_eval 378
FpX_halfgcd_i 349
_FpXQ_zero 240
FpX_halfgcd_basecase 187
FpXM_mul2 166
FpX_halfgcd_split 162
FpX_FpXM_qmul 162
FpXQ_transmul 123
FpXn_mul 108
FpXM_FpXQV_eval 84
FpXQM_autsum_mul 84
FpXQM_autsum 63
FpXQM_autsum_sqr 63
FpXQ_order 36
FpXQ_transmul_init 30
Fp_neg_FpX 29
FpXQ_auttrace 14
FpX_disc 14
FpXQ_conjvec 8
FpXQ_auttrace_mul 7
FpXQ_autpow_mul 7
FpXQ_auttrace_sqr 7
FpX_extgcd_halfgcd 4
matid2_FpXM 4
FpXQ_charpoly 1
FpX_Fp_add_shallow 0
FpX_gcd_check 0
FqV_inv 0

Generated by: LCOV version 1.9