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-bordeaux1.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 17853-438d50d) Lines: 1027 1101 93.3 %
Date: 2015-05-28 Functions: 131 134 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 497 628 79.1 %

Function Name Sort by function name Hit count Sort by hit count
FpX_red 67145337
get_FpX_red 56812677
FpX_divrem_basecase 53706984
FpX_rem 53046446
FpX_mul 52796662
to_Flx 40283406
FpXQ_mul 38059209
FpX_subspec 14049073
FpX_sub 13956034
FpX_add 8229619
FpX_Fp_mulspec 4306680
FpX_Fp_mul 4305532
FpX_divrem 3766230
FpXQ_red 3370265
FpX_sqr 2250722
FpXQ_sqr 2206110
_FpXQ_sqr 1701975
get_FpX_degree 1252970
get_FpX_var 1115706
FpX_mulu 1106124
FpX_deriv 789488
FpX_center 581909
to_Flxq 546561
_FpXQ_cmul 540025
FpX_Fp_add 492556
_FpXQ_add 483609
FpX_eval 481638
get_FpX_mod 400019
_FpXQ_mul 400013
FpXT_red 383468
FpX_extgcd 374204
FpX_mulspec 346145
FpXQ_invsafe 342928
FpXQ_inv 342428
FpXQ_pow 320090
FpX_extgcd_basecase 282540
FpXQ_div 261403
FpX_normalize 240904
ZX_lgrenormalizespec 197602
FpX_neg 192816
FpX_recipspec 186641
FpX_get_red 175741
FpX_FpXQ_eval 152437
FpXV_red 146948
_FpXQ_red 135374
_FpXQ_one 130383
FpXQ_powers 96449
FpX_divrem_Barrettspec 93038
FpX_divrem_Barrett_noGC 92598
FpX_gcd 89276
FpX_Fp_sub 87960
FpX_Frobenius 71768
_FpX_divrem 69706
_FpX_mul 65444
FpXQ_pow_Frobenius 61432
random_FpX 61038
_FpXQ_pow 60856
FpXQ_log 58467
FpX_FpXQV_eval 53614
FpXQ_powu 51681
FpX_Fp_mul_to_monic 51547
Fp_issquare 46844
Fq_issquare 46641
Fp_FpXQ_log 37078
Fp_FpX_sub 31909
_FpX_sqr 24423
FpX_valrem 23303
FpX_gcd_basecase 18886
FpX_div_by_X_x 18540
FpXV_prod 18442
FpX_rescale 13174
FpXQ_trace 10500
_FpX_add 10241
FpXQ_sqrtn 7870
FpXQ_sqrt 7040
FpXQ_matrix_pow 6552
gener_FpXQ 6512
FpX_digits 5642
FpX_resultant 4953
FpV_roots_to_pol 4839
bounded_order 3947
FpX_powu 3094
FpXQ_charpoly 2956
FpXQ_minpoly 2955
FpX_matFrobenius 2499
FpV_inv 2423
_FpXQ_rand 2376
FpXQ_issquare 2326
FpXQ_norm 2299
FpX_fromdigits 2296
FpX_is_squarefree 2212
FpX_invBarrett 2169
FpXQ_autsum_mul 1910
FpX_invBarrett_basecase 1598
Fq_log 1575
FpX_Fp_sub_shallow 1571
gener_FpXQ_i 1444
gener_FpXQ_local 1428
get_FpXQ_star 1279
FpX_addmulmul 1004
FpXQ_autsum_sqr 992
FpXQ_autsum 978
Fp_red_FpX 926
FpX_halve 875
Z_to_FpX 870
_FpXQ_easylog 863
FpX_chinese_coprime 665
FpX_invBarrett_Newton 567
FpXQ_autpow_sqr 542
FpXQ_autpowers 532
FpXQ_autpow 514
FpXM_FpX_mul2 498
FpX_halfgcd 398
FpXC_FpXQV_eval 378
FpX_halfgcd_i 334
_FpXQ_zero 240
FpX_halfgcd_basecase 172
FpXM_mul2 166
FpX_halfgcd_split 162
FpX_FpXM_qmul 162
FpXM_FpXQV_eval 84
FpXQM_autsum_mul 84
FpXQM_autsum 63
FpXQM_autsum_sqr 63
Fp_neg_FpX 52
FpXQ_order 38
FpX_disc 14
FpXQ_conjvec 8
FpXQ_autpow_mul 7
FpX_extgcd_halfgcd 4
matid2_FpXM 4
FpX_Fp_add_shallow 0
FpX_gcd_check 0
FqV_inv 0

Generated by: LCOV version 1.9