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 18955-a6d8269) Lines: 1228 1325 92.7 %
Date: 2016-05-31 Functions: 147 153 96.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 557 694 80.3 %

Function Name Sort by function name Hit count Sort by hit count
FpVV_polint_tree 1
FpV_FpM_polint 0
FpV_inv 4755
FpV_invVandermonde 2331
FpV_polint 1
FpV_producttree 2332
FpV_roots_to_pol 5117
FpXC_FpXQV_eval 434
FpXM_FpXQV_eval 98
FpXM_FpX_mul2 166
FpXM_mul2 166
FpXQM_autsum 70
FpXQM_autsum_mul 98
FpXQM_autsum_sqr 70
FpXQ_autpow 528
FpXQ_autpow_mul 7
FpXQ_autpow_sqr 556
FpXQ_autpowers 595
FpXQ_autsum 970
FpXQ_autsum_mul 1894
FpXQ_autsum_sqr 984
FpXQ_auttrace 14
FpXQ_auttrace_mul 7
FpXQ_auttrace_sqr 7
FpXQ_charpoly 1
FpXQ_conjvec 8
FpXQ_div 234615
FpXQ_inv 307459
FpXQ_invsafe 307473
FpXQ_issquare 3482
FpXQ_log 84598
FpXQ_matrix_pow 3878
FpXQ_minpoly 3095
FpXQ_mul 39798194
FpXQ_norm 3434
FpXQ_order 29
FpXQ_pow 666454
FpXQ_pow_Frobenius 386622
FpXQ_powers 182925
FpXQ_powu 61705
FpXQ_red 4108108
FpXQ_sqr 3314308
FpXQ_sqrt 7172
FpXQ_sqrtn 8226
FpXQ_trace 20685
FpXQ_transmul 123
FpXQ_transmul_init 30
FpXT_red 723005
FpXV_prod 19532
FpXV_red 287194
FpX_FpV_multieval 0
FpX_FpV_multieval_tree 2332
FpX_FpXM_qmul 162
FpX_FpXQV_eval 122693
FpX_FpXQ_eval 150218
FpX_Fp_add 546531
FpX_Fp_add_shallow 0
FpX_Fp_mul 3848731
FpX_Fp_mul_to_monic 52404
FpX_Fp_mulspec 3854415
FpX_Fp_sub 116360
FpX_Fp_sub_shallow 1551
FpX_Frobenius 77324
FpX_add 10489374
FpX_addmulmul 340
FpX_center 642670
FpX_chinese_coprime 665
FpX_deriv 798153
FpX_digits 5642
FpX_disc 14
FpX_div_by_X_x 20027
FpX_divrem 3704284
FpX_divrem_Barrett_noGC 97779
FpX_divrem_Barrettspec 98220
FpX_divrem_basecase 65478138
FpX_dotproduct 566
FpX_eval 525010
FpX_extgcd 341089
FpX_extgcd_basecase 259793
FpX_extgcd_halfgcd 4
FpX_fromdigits 2296
FpX_gcd 126974
FpX_gcd_basecase 52038
FpX_gcd_check 0
FpX_get_red 652965
FpX_halfgcd 455
FpX_halfgcd_basecase 187
FpX_halfgcd_i 349
FpX_halfgcd_split 162
FpX_halve 1124
FpX_invBarrett 1982
FpX_invBarrett_Newton 557
FpX_invBarrett_basecase 1421
FpX_is_squarefree 2478
FpX_matFrobenius 2583
FpX_mul 47246481
FpX_mulspec 1663020
FpX_mulu 1183943
FpX_neg 165794
FpX_normalize 245858
FpX_powu 144599
FpX_recipspec 197084
FpX_red 69250030
FpX_rem 66197180
FpX_rescale 13076
FpX_resultant 6098
FpX_sqr 3378214
FpX_sub 7350659
FpX_subspec 7448882
FpX_valrem 23296
FpXn_mul 108
Fp_FpXQ_log 38347
Fp_FpX_sub 34713
Fp_issquare 46872
Fp_neg_FpX 36
Fp_red_FpX 3495
FqV_inv 0
Fq_ispower 112
Fq_issquare 46662
Fq_log 1876
ZX_lgrenormalizespec 207696
Z_to_FpX 1710
_FpXQ_add 1017150
_FpXQ_cmul 1142641
_FpXQ_easylog 1396
_FpXQ_mul 1335276
_FpXQ_one 301165
_FpXQ_pow 385962
_FpXQ_rand 3534
_FpXQ_red 343089
_FpXQ_sqr 2845020
_FpXQ_sub 57554
_FpXQ_zero 3537
_FpX_add 10241
_FpX_divrem 69706
_FpX_mul 67461
_FpX_sqr 29722
bounded_order 5547
deg2pol_shallow 9872
gener_FpXQ 6673
gener_FpXQ_i 1451
gener_FpXQ_local 1428
get_FpXQ_algebra 13559
get_FpXQ_star 1783
get_FpX_algebra 0
get_FpX_degree 2192803
get_FpX_mod 417743
get_FpX_red 69901493
get_FpX_var 1596016
matid2_FpXM 4
random_FpX 47359
to_Flx 41574576
to_Flxq 645745

Generated by: LCOV version 1.9