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 17238-ce76349) Lines: 1018 1107 92.0 %
Date: 2014-12-20 Functions: 131 135 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 484 624 77.6 %

Function Name Sort by function name Hit count Sort by hit count
FpX_red 64062465
get_FpX_red 51929894
FpX_mul 51238354
FpX_divrem_basecase 49305737
FpX_rem 49057352
FpXQ_mul 37924787
to_Flx 36737552
FpX_subspec 13235429
FpX_sub 13145857
FpX_add 4976955
FpX_Fp_mulspec 3182454
FpX_Fp_mul 3181306
FpXQ_red 3137629
FpX_divrem 2872542
FpX_sqr 2183400
FpXQ_sqr 2151032
_FpXQ_sqr 1649574
FpX_mulu 1056457
get_FpX_degree 818401
get_FpX_var 757438
FpX_center 571172
to_Flxq 568746
_FpXQ_cmul 532923
FpX_Fp_add 483806
FpX_eval 479587
_FpXQ_add 478804
FpX_deriv 449002
FpXT_red 373200
FpX_extgcd 355287
get_FpX_mod 350518
FpX_mulspec 330813
FpXQ_invsafe 323829
FpXQ_inv 323329
_FpXQ_mul 304930
FpXQ_pow 273685
FpX_extgcd_basecase 268570
FpXQ_div 256167
FpX_normalize 240289
ZX_lgrenormalizespec 179773
FpX_recipspec 179182
FpX_neg 159209
FpX_FpXQ_eval 152236
FpXV_red 146661
_FpXQ_red 132143
_FpXQ_one 126784
FpX_get_red 126137
FpXQ_powers 95908
FpX_divrem_Barrettspec 89572
FpX_divrem_Barrett_noGC 89170
FpX_gcd 88672
FpX_Fp_sub 85846
FpX_Frobenius 71548
random_FpX 60997
FpXQ_log 58410
_FpX_mul 54601
FpXQ_powu 51897
FpX_Fp_mul_to_monic 51340
FpX_FpXQV_eval 51302
Fq_issquare 46578
Fp_issquare 46578
Fp_FpXQ_log 37024
_FpX_divrem 36386
FpX_valrem 23429
FpX_gcd_basecase 18672
FpX_div_by_X_x 18358
FpXV_prod 17924
Fp_FpX_sub 16458
FpXQ_pow_Frobenius 15781
_FpXQ_pow 15187
_FpX_sqr 13293
FpX_rescale 13216
FpXQ_trace 10277
FpXQ_sqrtn 7788
FpXQ_sqrt 6965
FpXQ_matrix_pow 6544
gener_FpXQ 6497
FpX_resultant 5021
_FpX_add 4858
FpV_roots_to_pol 4671
bounded_order 3876
FpX_digits 3423
FpXQ_charpoly 2956
FpXQ_minpoly 2955
FpX_powu 2548
FpX_matFrobenius 2512
FpV_inv 2423
FpXQ_issquare 2322
_FpXQ_rand 2313
FpX_is_squarefree 2149
FpXQ_autsum_mul 1769
FpX_invBarrett 1640
FpX_invBarrett_basecase 1598
Fq_log 1540
FpX_Fp_sub_shallow 1528
FpX_fromdigits 1449
gener_FpXQ_i 1436
gener_FpXQ_local 1421
get_FpXQ_star 1271
FpXQ_autsum_sqr 927
FpX_addmulmul 914
FpXQ_autsum 913
FpX_halve 875
Z_to_FpX 870
_FpXQ_easylog 839
FpX_chinese_coprime 665
FpXQ_autpow_sqr 557
Fp_red_FpX 555
FpXQ_autpowers 532
FpXQ_autpow 529
FpXM_FpX_mul2 453
FpX_halfgcd 347
FpX_halfgcd_i 303
FpX_halfgcd_basecase 156
FpXM_mul2 151
FpX_halfgcd_split 147
FpX_FpXM_qmul 147
FpXC_FpXQV_eval 112
FpX_invBarrett_Newton 38
FpXQ_order 36
FpXM_FpXQV_eval 28
FpXQM_autsum_mul 28
_FpXQ_zero 16
FpXQM_autsum 14
Fp_neg_FpX 14
FpX_disc 14
FpXQM_autsum_sqr 14
FpXQ_conjvec 8
FpXQ_autpow_mul 7
FpX_extgcd_halfgcd 4
matid2_FpXM 4
FpXQ_norm 1
FpX_Fp_add_shallow 0
FpX_gcd_check 0
FqV_inv 0
famat_Z_gcd 0

Generated by: LCOV version 1.9