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

Generated by: LCOV version 1.9