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 19226-b907b8d) Lines: 1228 1328 92.5 %
Date: 2016-07-29 07:10:27 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 4762
FpV_invVandermonde 2338
FpV_polint 1
FpV_producttree 2339
FpV_roots_to_pol 5131
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 285988
FpXQ_invsafe 286002
FpXQ_issquare 3470
FpXQ_log 84591
FpXQ_matrix_pow 3878
FpXQ_minpoly 3095
FpXQ_mul 41422854
FpXQ_norm 3422
FpXQ_order 29
FpXQ_pow 1213362
FpXQ_pow_Frobenius 853158
FpXQ_powers 184171
FpXQ_powu 61873
FpXQ_red 3687564
FpXQ_sqr 3768923
FpXQ_sqrt 7195
FpXQ_sqrtn 8249
FpXQ_trace 20780
FpXQ_transmul 123
FpXQ_transmul_init 30
FpXT_red 1089567
FpXV_prod 19588
FpXV_red 288482
FpX_FpV_multieval 0
FpX_FpV_multieval_tree 2339
FpX_FpXM_qmul 162
FpX_FpXQV_eval 124387
FpX_FpXQ_eval 175205
FpX_Fp_add 548983
FpX_Fp_add_shallow 0
FpX_Fp_mul 3233330
FpX_Fp_mul_to_monic 52411
FpX_Fp_mulspec 3239014
FpX_Fp_sub 298344
FpX_Fp_sub_shallow 1565
FpX_Frobenius 157595
FpX_add 8128189
FpX_addmulmul 340
FpX_center 748314
FpX_chinese_coprime 665
FpX_deriv 634686
FpX_digits 5642
FpX_disc 28
FpX_div_by_X_x 20321
FpX_divrem 3364908
FpX_divrem_Barrett_noGC 97695
FpX_divrem_Barrettspec 98119
FpX_divrem_basecase 63966145
FpX_dotproduct 566
FpX_eval 525402
FpX_extgcd 319751
FpX_extgcd_basecase 244465
FpX_extgcd_halfgcd 4
FpX_fromdigits 2296
FpX_gcd 441295
FpX_gcd_basecase 52052
FpX_gcd_check 0
FpX_get_red 1121915
FpX_halfgcd 455
FpX_halfgcd_basecase 187
FpX_halfgcd_i 349
FpX_halfgcd_split 162
FpX_halve 1124
FpX_invBarrett 1937
FpX_invBarrett_Newton 512
FpX_invBarrett_basecase 1421
FpX_is_squarefree 2478
FpX_matFrobenius 2583
FpX_mul 47598083
FpX_mulspec 1661449
FpX_mulu 1179435
FpX_neg 80067
FpX_normalize 246320
FpX_powu 258146
FpX_recipspec 196841
FpX_red 70127506
FpX_rem 64529409
FpX_rescale 13062
FpX_resultant 5927
FpX_sqr 3858160
FpX_sub 6725339
FpX_subspec 6823457
FpX_valrem 23282
FpXn_mul 108
Fp_FpXQ_log 38306
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 206648
Z_to_FpX 1710
_FpXQ_add 1024514
_FpXQ_cmul 1151696
_FpXQ_easylog 1348
_FpXQ_mul 2273780
_FpXQ_one 303487
_FpXQ_pow 852492
_FpXQ_rand 3462
_FpXQ_red 345888
_FpXQ_sqr 3302847
_FpXQ_sub 57554
_FpXQ_zero 3537
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 69001
_FpX_sqr 55083
bounded_order 5442
deg2pol_shallow 9879
gener_FpXQ 6673
gener_FpXQ_i 1451
gener_FpXQ_local 1428
get_FpXQ_algebra 13559
get_FpXQ_star 1771
get_FpX_algebra 0
get_FpX_degree 2354374
get_FpX_mod 396618
get_FpX_red 67894350
get_FpX_var 1446796
matid2_FpXM 4
random_FpX 46927
to_Flx 39923681
to_Flxq 752417

Generated by: LCOV version 1.11