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 19608-b7b365e) Lines: 1229 1328 92.5 %
Date: 2016-09-26 05:54:43 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 4139
FpV_invVandermonde 1715
FpV_polint 1
FpV_producttree 1716
FpV_roots_to_pol 5236
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 602
FpXQ_autsum 795
FpXQ_autsum_mul 1551
FpXQ_autsum_sqr 809
FpXQ_auttrace 14
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpXQ_charpoly 1
FpXQ_conjvec 8
FpXQ_div 228360
FpXQ_inv 286504
FpXQ_invsafe 286518
FpXQ_issquare 3258
FpXQ_log 84447
FpXQ_matrix_pow 3878
FpXQ_minpoly 3263
FpXQ_mul 41320476
FpXQ_norm 3210
FpXQ_order 29
FpXQ_pow 1211768
FpXQ_pow_Frobenius 853718
FpXQ_powers 184681
FpXQ_powu 62769
FpXQ_red 3430941
FpXQ_sqr 3764854
FpXQ_sqrt 7340
FpXQ_sqrtn 8436
FpXQ_trace 20782
FpXQ_transmul 123
FpXQ_transmul_init 30
FpXT_red 1092196
FpXV_prod 21696
FpXV_red 289251
FpX_FpV_multieval 0
FpX_FpV_multieval_tree 1716
FpX_FpXM_qmul 162
FpX_FpXQV_eval 125260
FpX_FpXQ_eval 169684
FpX_Fp_add 550335
FpX_Fp_add_shallow 0
FpX_Fp_mul 3505460
FpX_Fp_mul_to_monic 53326
FpX_Fp_mulspec 3511144
FpX_Fp_sub 299208
FpX_Fp_sub_shallow 1569
FpX_Frobenius 156023
FpX_add 8160289
FpX_addmulmul 340
FpX_center 717234
FpX_chinese_coprime 665
FpX_deriv 635164
FpX_digits 5642
FpX_disc 28
FpX_div_by_X_x 19299
FpX_divrem 3660956
FpX_divrem_Barrett_noGC 97754
FpX_divrem_Barrettspec 98150
FpX_divrem_basecase 64169395
FpX_dotproduct 566
FpX_eval 370304
FpX_extgcd 358380
FpX_extgcd_basecase 246645
FpX_extgcd_halfgcd 4
FpX_fromdigits 2296
FpX_gcd 440352
FpX_gcd_basecase 52065
FpX_gcd_check 0
FpX_get_red 1123036
FpX_halfgcd 455
FpX_halfgcd_basecase 187
FpX_halfgcd_i 349
FpX_halfgcd_split 162
FpX_halve 1090
FpX_invBarrett 2041
FpX_invBarrett_Newton 516
FpX_invBarrett_basecase 1493
FpX_is_squarefree 2051
FpX_matFrobenius 2583
FpX_mul 47662094
FpX_mulspec 1657737
FpX_mulu 1183978
FpX_neg 81032
FpX_normalize 322915
FpX_powu 258174
FpX_recipspec 196903
FpX_red 69950030
FpX_rem 64084929
FpX_rescale 13349
FpX_resultant 5790
FpX_sqr 3854114
FpX_sub 6629999
FpX_subspec 6728147
FpX_valrem 23667
FpXn_mul 108
Fp_FpXQ_log 38913
Fp_FpX_sub 8713
Fp_issquare 90797
Fp_neg_FpX 13
Fp_red_FpX 6584
FqV_inv 0
Fq_ispower 133
Fq_issquare 90650
Fq_log 1876
ZX_lgrenormalizespec 206796
Z_to_FpX 1710
_FpXQ_add 1052536
_FpXQ_cmul 1180636
_FpXQ_easylog 1443
_FpXQ_mul 2277290
_FpXQ_one 308187
_FpXQ_pow 853059
_FpXQ_rand 3384
_FpXQ_red 352228
_FpXQ_sqr 3295947
_FpXQ_sub 57554
_FpXQ_zero 3537
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 75053
_FpX_sqr 55083
bounded_order 5394
deg2pol_shallow 9368
gener_FpXQ 6771
gener_FpXQ_i 1458
gener_FpXQ_local 1435
get_FpXQ_algebra 13559
get_FpXQ_star 1782
get_FpX_algebra 0
get_FpX_degree 2324501
get_FpX_mod 396128
get_FpX_red 67745914
get_FpX_var 1411912
matid2_FpXM 4
random_FpX 19062
to_Flx 40248135
to_Flxq 747177

Generated by: LCOV version 1.11