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 19374-ac31b96) Lines: 1228 1328 92.5 %
Date: 2016-08-30 06:11:37 Functions: 147 153 96.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpV_FpM_polint 0
FpX_FpV_multieval 0
FpX_Fp_add_shallow 0
FpX_gcd_check 0
FqV_inv 0
get_FpX_algebra 0
FpVV_polint_tree 1
FpV_polint 1
FpXQ_charpoly 1
FpX_extgcd_halfgcd 4
matid2_FpXM 4
FpXQ_autpow_mul 7
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpXQ_conjvec 8
FpXQ_auttrace 14
Fp_neg_FpX 17
FpX_disc 28
FpXQ_order 29
FpXQ_transmul_init 30
FpXn_mul 108
Fq_ispower 112
FpXQ_transmul 123
FpXQM_autsum 140
FpX_FpXM_qmul 162
FpX_halfgcd_split 162
FpXM_FpX_mul2 166
FpXM_mul2 166
FpX_halfgcd_basecase 187
FpXQM_autsum_sqr 210
FpXM_FpXQV_eval 308
FpXQM_autsum_mul 308
FpX_addmulmul 340
FpX_halfgcd_i 349
FpX_halfgcd 455
FpXQ_autpow 514
FpXQ_autpow_sqr 542
FpX_invBarrett_Newton 558
FpX_dotproduct 566
FpXQ_autpowers 595
FpX_chinese_coprime 665
FpXC_FpXQV_eval 854
FpXQ_autsum 956
FpXQ_autsum_sqr 970
FpX_halve 1124
_FpXQ_easylog 1348
FpX_invBarrett_basecase 1421
gener_FpXQ_local 1435
gener_FpXQ_i 1458
FpX_Fp_sub_shallow 1565
FpV_invVandermonde 1645
FpV_producttree 1646
FpX_FpV_multieval_tree 1646
Z_to_FpX 1710
get_FpXQ_star 1771
FpXQ_autsum_mul 1866
Fq_log 1876
FpX_is_squarefree 1981
FpX_invBarrett 1983
FpX_fromdigits 2296
FpX_matFrobenius 2583
FpXQ_minpoly 3109
FpXQ_norm 3422
_FpXQ_rand 3462
FpXQ_issquare 3470
_FpXQ_zero 3537
FpXQ_matrix_pow 3878
FpV_inv 4069
FpV_roots_to_pol 5138
bounded_order 5442
FpX_digits 5642
FpX_resultant 6152
Fp_red_FpX 6584
gener_FpXQ 6673
FpXQ_sqrt 7377
FpXQ_sqrtn 8431
deg2pol_shallow 9207
Fp_FpX_sub 9215
_FpX_add 10241
FpX_rescale 13062
get_FpXQ_algebra 13559
FpX_div_by_X_x 18977
FpXV_prod 19505
FpXQ_trace 20803
FpX_valrem 23282
Fp_FpXQ_log 38600
random_FpX 47092
FpX_gcd_basecase 52052
FpX_Fp_mul_to_monic 52705
_FpX_sqr 55083
_FpXQ_sub 57554
FpXQ_powu 61873
_FpX_mul 68596
_FpX_divrem 69706
FpX_neg 80001
FpXQ_log 84241
Fq_issquare 90580
Fp_issquare 90755
FpX_divrem_Barrett_noGC 98039
FpX_divrem_Barrettspec 98465
FpX_FpXQV_eval 124340
FpX_Frobenius 156244
FpX_FpXQ_eval 173849
FpXQ_powers 184144
FpX_recipspec 197577
ZX_lgrenormalizespec 208306
FpXQ_div 226448
FpX_extgcd_basecase 244465
FpX_normalize 244710
FpX_powu 258174
FpXQ_inv 285295
FpXQ_invsafe 285309
FpXV_red 288448
FpX_Fp_sub 298471
_FpXQ_one 303559
FpX_extgcd 318449
_FpXQ_red 346072
get_FpX_mod 395740
FpX_gcd 440308
FpX_eval 522720
FpX_Fp_add 550558
FpX_deriv 632960
FpX_center 747359
to_Flxq 750544
_FpXQ_pow 852492
FpXQ_pow_Frobenius 853200
_FpXQ_add 1024942
FpXT_red 1089112
FpX_get_red 1121213
_FpXQ_cmul 1152100
FpX_mulu 1179498
FpXQ_pow 1212181
get_FpX_var 1441604
FpX_mulspec 1662783
_FpXQ_mul 2273909
get_FpX_degree 2350337
FpX_Fp_mul 3240851
FpX_Fp_mulspec 3246535
_FpXQ_sqr 3302888
FpX_divrem 3359519
FpXQ_red 3669432
FpXQ_sqr 3769169
FpX_sqr 3858679
FpX_sub 6724993
FpX_subspec 6823457
FpX_add 8128479
to_Flx 39891676
FpXQ_mul 41423458
FpX_mul 47592831
FpX_divrem_basecase 63935670
FpX_rem 64500938
get_FpX_red 67860489
FpX_red 70084697

Generated by: LCOV version 1.11