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.8.0 lcov report (development 18888-55e726a) Lines: 1106 1183 93.5 %
Date: 2016-04-30 Functions: 139 142 97.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 524 656 79.9 %

Function Name Sort by function name Hit count Sort by hit count
FpX_red 64511846
get_FpX_red 61337241
FpX_rem 57450370
FpX_divrem_basecase 57333391
FpX_mul 45741355
to_Flx 41300517
FpXQ_mul 39488385
FpX_add 8855637
FpX_subspec 5228548
FpX_sub 5132062
FpX_divrem 3886840
FpX_Fp_mulspec 3876186
FpX_Fp_mul 3874485
FpXQ_red 3160856
FpX_sqr 3042403
FpXQ_sqr 2978798
_FpXQ_sqr 2471572
get_FpX_degree 1889478
get_FpX_var 1342656
_FpXQ_mul 1252937
FpX_mulu 1185611
_FpXQ_cmul 1095747
_FpXQ_add 993713
FpX_deriv 798111
FpXQ_pow 729568
FpXT_red 723243
FpX_get_red 675222
to_Flxq 645877
FpX_center 642796
FpX_Fp_add 550453
FpX_eval 524980
FpXQ_pow_Frobenius 450401
_FpXQ_pow 449802
get_FpX_mod 437699
FpX_mulspec 369039
FpX_extgcd 361026
FpXQ_invsafe 327417
FpXQ_inv 326925
FpXV_red 287194
FpX_extgcd_basecase 277338
FpXQ_div 255958
_FpXQ_red 255892
FpX_normalize 245851
_FpXQ_one 236809
ZX_lgrenormalizespec 204484
FpX_recipspec 193630
FpXQ_powers 181917
FpX_neg 153206
FpX_FpXQ_eval 150210
FpX_powu 144410
FpX_gcd 126813
FpX_Fp_sub 118419
FpX_FpXQV_eval 99229
FpX_divrem_Barrettspec 96485
FpX_divrem_Barrett_noGC 96046
FpXQ_log 84598
FpX_Frobenius 76778
_FpX_divrem 69706
_FpX_mul 66883
FpXQ_powu 61698
FpX_Fp_mul_to_monic 52385
FpX_gcd_basecase 51911
Fp_issquare 46872
Fq_issquare 46662
random_FpX 45222
Fp_FpXQ_log 37747
Fp_FpX_sub 33872
_FpX_sqr 29344
FpX_valrem 23296
FpXQ_trace 20691
FpX_div_by_X_x 20015
FpXV_prod 19491
FpX_rescale 13076
_FpX_add 10241
FpXQ_sqrtn 7708
gener_FpXQ 6666
FpXQ_sqrt 6654
FpX_resultant 6055
FpX_digits 5642
FpV_roots_to_pol 5083
bounded_order 3936
FpXQ_matrix_pow 3878
FpXQ_issquare 3489
FpXQ_norm 3441
FpXQ_minpoly 3095
FpX_matFrobenius 2583
Fp_red_FpX 2564
FpX_is_squarefree 2471
_FpXQ_rand 2441
FpV_inv 2423
FpX_fromdigits 2296
FpX_invBarrett 1976
FpXQ_autsum_mul 1894
Fq_log 1876
Z_to_FpX 1710
FpX_Fp_sub_shallow 1551
gener_FpXQ_i 1444
gener_FpXQ_local 1428
FpX_invBarrett_basecase 1403
get_FpXQ_star 1265
FpX_addmulmul 1004
FpXQ_autsum_sqr 984
FpXQ_autsum 970
_FpXQ_easylog 796
FpX_chinese_coprime 665
FpX_halve 606
FpXQ_autpowers 595
FpX_invBarrett_Newton 569
FpX_dotproduct 566
FpXQ_autpow_sqr 556
FpXQ_autpow 528
FpXM_FpX_mul2 498
FpX_halfgcd 455
FpXC_FpXQV_eval 434
_FpXQ_zero 408
FpX_halfgcd_i 349
FpX_halfgcd_basecase 187
FpXM_mul2 166
FpX_halfgcd_split 162
FpX_FpXM_qmul 162
FpXQ_transmul 123
Fq_ispower 112
FpXn_mul 108
FpXM_FpXQV_eval 98
FpXQM_autsum_mul 98
FpXQM_autsum 70
FpXQM_autsum_sqr 70
FpXQ_transmul_init 30
Fp_neg_FpX 29
FpXQ_order 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