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 19369-efd6c3d) Lines: 1228 1328 92.5 %
Date: 2016-08-29 06:11:50 Functions: 147 153 96.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpVV_polint_tree 1
FpV_FpM_polint 0
FpV_inv 4069
FpV_invVandermonde 1645
FpV_polint 1
FpV_producttree 1646
FpV_roots_to_pol 5138
FpXC_FpXQV_eval 854
FpXM_FpXQV_eval 308
FpXM_FpX_mul2 166
FpXM_mul2 166
FpXQM_autsum 140
FpXQM_autsum_mul 308
FpXQM_autsum_sqr 210
FpXQ_autpow 514
FpXQ_autpow_mul 7
FpXQ_autpow_sqr 542
FpXQ_autpowers 595
FpXQ_autsum 956
FpXQ_autsum_mul 1866
FpXQ_autsum_sqr 970
FpXQ_auttrace 14
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpXQ_charpoly 1
FpXQ_conjvec 8
FpXQ_div 226448
FpXQ_inv 285295
FpXQ_invsafe 285309
FpXQ_issquare 3470
FpXQ_log 84241
FpXQ_matrix_pow 3878
FpXQ_minpoly 3109
FpXQ_mul 41423119
FpXQ_norm 3422
FpXQ_order 29
FpXQ_pow 1212164
FpXQ_pow_Frobenius 853200
FpXQ_powers 184144
FpXQ_powu 61873
FpXQ_red 3669432
FpXQ_sqr 3769084
FpXQ_sqrt 7377
FpXQ_sqrtn 8431
FpXQ_trace 20786
FpXQ_transmul 123
FpXQ_transmul_init 30
FpXT_red 1088398
FpXV_prod 19505
FpXV_red 288448
FpX_FpV_multieval 0
FpX_FpV_multieval_tree 1646
FpX_FpXM_qmul 162
FpX_FpXQV_eval 124340
FpX_FpXQ_eval 173832
FpX_Fp_add 550558
FpX_Fp_add_shallow 0
FpX_Fp_mul 3240851
FpX_Fp_mul_to_monic 52705
FpX_Fp_mulspec 3246535
FpX_Fp_sub 298351
FpX_Fp_sub_shallow 1565
FpX_Frobenius 156244
FpX_add 8128479
FpX_addmulmul 340
FpX_center 747360
FpX_chinese_coprime 665
FpX_deriv 632943
FpX_digits 5642
FpX_disc 28
FpX_div_by_X_x 18977
FpX_divrem 3359520
FpX_divrem_Barrett_noGC 97786
FpX_divrem_Barrettspec 98209
FpX_divrem_basecase 63935671
FpX_dotproduct 566
FpX_eval 522720
FpX_extgcd 318449
FpX_extgcd_basecase 244465
FpX_extgcd_halfgcd 4
FpX_fromdigits 2296
FpX_gcd 440308
FpX_gcd_basecase 52052
FpX_gcd_check 0
FpX_get_red 1121146
FpX_halfgcd 455
FpX_halfgcd_basecase 187
FpX_halfgcd_i 349
FpX_halfgcd_split 162
FpX_halve 1124
FpX_invBarrett 1949
FpX_invBarrett_Newton 524
FpX_invBarrett_basecase 1421
FpX_is_squarefree 1981
FpX_matFrobenius 2583
FpX_mul 47592492
FpX_mulspec 1661796
FpX_mulu 1179498
FpX_neg 80001
FpX_normalize 244710
FpX_powu 258174
FpX_recipspec 197033
FpX_red 70081917
FpX_rem 64500003
FpX_rescale 13062
FpX_resultant 6152
FpX_sqr 3858391
FpX_sub 6724672
FpX_subspec 6822882
FpX_valrem 23282
FpXn_mul 108
Fp_FpXQ_log 38600
Fp_FpX_sub 9215
Fp_issquare 90755
Fp_neg_FpX 17
Fp_red_FpX 6584
FqV_inv 0
Fq_ispower 112
Fq_issquare 90580
Fq_log 1876
ZX_lgrenormalizespec 207080
Z_to_FpX 1710
_FpXQ_add 1024823
_FpXQ_cmul 1151964
_FpXQ_easylog 1348
_FpXQ_mul 2273858
_FpXQ_one 303474
_FpXQ_pow 852492
_FpXQ_rand 3462
_FpXQ_red 345987
_FpXQ_sqr 3302820
_FpXQ_sub 57554
_FpXQ_zero 3537
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 68596
_FpX_sqr 55083
bounded_order 5442
deg2pol_shallow 9207
gener_FpXQ 6673
gener_FpXQ_i 1458
gener_FpXQ_local 1435
get_FpXQ_algebra 13559
get_FpXQ_star 1771
get_FpX_algebra 0
get_FpX_degree 2350320
get_FpX_mod 395706
get_FpX_red 67859553
get_FpX_var 1441502
matid2_FpXM 4
random_FpX 47092
to_Flx 39891677
to_Flxq 750085

Generated by: LCOV version 1.11