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 - F2x.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18888-55e726a) Lines: 1184 1283 92.3 %
Date: 2016-04-30 Functions: 151 157 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 591 763 77.5 %

Function Name Sort by function name Hit count Sort by hit count
F2x_degree_lg 142975224
F2x_addshiftip 75149266
F2x_mulspec 39762967
F2x_degree 37901512
F2x_shiftip 36873780
F2v_add_inplace 28418766
F2x_mul1 25789890
F2x_rem 22782965
F2x_add 18007724
F2x_mul 17594427
F2x_addshift 11670269
F2x_divrem 10486365
F2x_addspec 9330616
F2xq_mul 3377194
F2x_sqr 2762083
F2xq_sqr 2598359
ZV_to_F2v 2169217
F2xX_renormalize 1725213
F2x_gcd 1273550
F2c_to_ZC 1024701
F2xq_inv 909886
F2xq_invsafe 909886
F2x_extgcd 909886
_F2xq_cmul 770375
F2xqX_rem 757281
F2xqX_divrem 640318
F2xqX_red 576142
_F2xq_add 543282
F2x_slice 525553
_F2xq_mul 516794
_F2xq_sqr 490386
_F2xq_one 475903
F2x_F2xqV_eval 409486
ZM_to_F2m 392508
F2x_to_F2v 359156
F2xq_div 342629
_F2xq_red 328632
_F2xqXQ_cmul 321804
F2xX_F2x_mul 321804
pol1_F2xX 319662
F2xq_pow 294876
F2x_deriv 292195
F2xX_add 290479
_F2xq_pow 289540
_F2xqXQ_one 262633
_F2xqXQ_red 259413
_F2xqXQ_add 231315
_F2xq_zero 218491
F2m_to_ZM 201266
F2xqX_gcd 192920
ZX_to_F2x 173647
F2x_1_add 172992
F2xX_to_Kronecker 169470
Rg_to_F2xq 165948
F2xY_degreex 161147
F2xqX_F2xq_mul_to_monic 159922
F2xqX_normalize 159922
Z_to_F2x 157304
const_F2v 152728
F2xq_powers 147881
Flx_to_F2x 146918
F2x_shift 116816
F2x_shiftpos 116326
F2x_is_smooth_squarefree 109956
F2x_to_ZX 105972
F2x_is_smooth 95417
F2xY_F2xqV_evalx 90524
F2x_to_Flx 87577
F2xqX_F2xq_mul 86618
F2xq_easylog 86163
F2xqX_F2xqXQ_eval 84840
F2xqXQ_mul 84735
F2xqX_mul 84735
_F2xqXQ_mul 84735
Kronecker_to_F2xqX 84735
F2xqX_sqr 84574
F2xqXQ_sqr 84574
F2xq_trace 84535
F2x_pow2n 81760
F2x_Frobenius 77854
F2xX_deriv 66080
F2xq_matrix_pow 60199
F2xV_to_F2m 60199
F2xqXQ_autpow_sqr 56322
F2xqXQV_autpow 56322
rel_Coppersmith 54019
F2xq_log 53298
F2x_valrem 45337
F2x_even_odd 41612
F2xq_sqrt_fast 41611
F2xq_Artin_Schreier 39374
F2x_deflate 36771
F2x_F2xq_eval 36354
F2xq_sqrt 29573
F2xqXQ_autpow_mul 28518
_F2xqXQ_sqr 28252
F2xq_autpow_sqr 23522
F2x_matFrobenius 20825
F2x_sqrt 18627
mkF2 18282
F2xq_autpow 15230
F2x_is_x 15230
F2x_issquare 14567
FlxC_to_F2xC 14091
F2xq_autpow_mul 12818
RgV_to_F2v 7686
F2x_factorel 7504
Flv_to_F2v 6496
F2xqX_F2xqXQV_eval 5684
F2xq_powu 3955
F2v_to_Flv 3682
F2c_to_mod 3045
F2xqXQ_auttrace_mul 2842
F2xqXQ_powers 2842
F2xC_to_ZXC 2597
ZXX_to_F2xX 2597
F2xqXQ_auttrace_sqr 1624
random_F2xqX 1624
F2xqXQV_auttrace 1624
F2m_to_Flm 1386
Flm_to_F2m 1386
F2xq_sqrtn 868
_F2xq_rmul 728
F2x_shiftneg 490
F2xq_order 352
F2x_halfgcd_i 315
F2x_halfgcd 315
RgM_to_F2m 287
F2x_eval 224
_F2xq_equal0 182
_F2xq_neg 161
RgX_to_F2x 140
F2xq_log_find_rel 119
_F2xq_s 119
F2m_to_mod 112
_F2xq_inv 91
gener_F2xq 84
_F2xq_rand 84
get_F2xq_field 70
F2xq_log_Coppersmith_d 42
monomial_F2x 35
_F2xqXQ_zero 35
F2v_slice 28
F2xq_log_from_rel 28
F2xq_log_Coppersmith_rec 14
F2m_rowslice 14
F2xq_log_index 7
F2xq_conjvec 7
check_kernel 7
F2xq_log_Coppersmith 7
smallirred_F2x 7
polx_F2xX 0
F2xC_to_FlxC 0
F2xY_F2xq_evalx 0
F2xX_to_ZXX 0
F2xqXQ_pow 0
FlxX_to_F2xX 0

Generated by: LCOV version 1.9