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 19628-9774e23) Lines: 1244 1326 93.8 %
Date: 2016-10-01 05:54:29 Functions: 156 161 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xC_to_FlxC 0
F2xY_F2xq_evalx 0
F2x_deflate 0
F2xq_powu 0
polx_F2xX 0
F2xqXQ_pow 7
F2xq_conjvec 7
F2xq_log_Coppersmith 7
F2xq_log_index 7
check_kernel 7
smallirred_F2x 7
F2m_rowslice 14
F2xq_log_Coppersmith_rec 14
F2v_slice 28
F2xq_log_from_rel 28
_F2xqXQ_zero 35
monomial_F2x 35
F2xq_log_Coppersmith_d 42
get_F2xq_field 91
F2m_to_mod 112
_F2xq_inv 112
F2xq_log_find_rel 119
gener_F2xq 147
FlxXC_to_F2xXC 161
_F2xq_s 168
_F2xq_neg 182
F2x_eval 224
_F2xq_equal0 231
F2xXC_to_ZXXC 245
RgM_to_F2m 287
F2x_halfgcd 315
F2x_halfgcd_i 315
F2xq_order 350
F2x_shiftneg 490
_F2xq_rmul 777
RgX_to_F2x 1218
F2m_to_Flm 1386
Flm_to_F2m 1386
FlxX_to_F2xX 1736
F2xX_to_ZXX 1855
F2xC_to_ZXC 2051
ZXX_to_F2xX 2296
F2xqXQV_auttrace 2541
random_F2xqX 2583
F2c_to_mod 3045
F2v_to_Flv 3682
F2xqXQ_auttrace_sqr 4529
Flv_to_F2v 6496
F2xqXQ_auttrace_mul 6685
F2xqXQ_powers 6713
F2xqX_F2xq_mul 6895
F2x_factorel 7504
RgV_to_F2v 7686
F2xq_sqrtn 7777
_F2xq_rand 9317
F2xq_autpow_mul 12630
F2x_addshift 13386
F2xqX_F2xqXQV_eval 13447
F2x_issquare 14567
FlxC_to_F2xC 14854
F2x_is_x 15041
F2xq_autpow 15041
F2x_addspec 17997
mkF2 18093
F2xq_autpow_sqr 23333
F2xq_sqrt 29510
_F2xqXQ_sqr 32606
F2xqXQ_autpow_mul 33306
F2x_F2xq_eval 35977
F2xq_sqrt_fast 41435
F2x_even_odd 41436
F2xq_log 53067
rel_Coppersmith 54019
F2x_valrem 55398
F2x_sqrt 56522
F2xqXQV_autpow 70518
F2xX_deriv 80325
F2x_pow2n 81760
F2xq_easylog 87290
F2xqXQ_autpow_sqr 88816
F2x_to_Flx 90304
F2x_is_smooth 95417
F2xqXQ_sqr 103131
F2xqX_sqr 103292
F2x_is_smooth_squarefree 109956
F2xqXQ_mul 114247
F2xqX_mul 114247
Kronecker_to_F2xqX 114247
_F2xqXQ_mul 114247
F2x_shiftpos 116326
F2x_shift 116816
F2xqX_F2xqXQ_eval 122122
F2xY_F2xqV_evalx 135492
F2x_to_ZX 154742
Z_to_F2x 159649
F2xqX_gcd 166859
ZX_to_F2x 171484
F2x_1_add 186438
Flx_to_F2x 189559
F2xqX_F2xq_mul_to_monic 203098
F2xqX_normalize 203098
F2xY_degreex 205086
F2m_to_ZM 206245
F2xq_Artin_Schreier 212562
F2xX_to_Kronecker 228494
F2xV_to_F2m 230351
F2x_matFrobenius 230351
F2xq_matrix_pow 230351
_F2xq_zero 259406
F2x_Frobenius 316380
const_F2v 327193
_F2xq_pow 334831
_F2xqXQ_add 342713
_F2xqXQ_red 351148
F2xq_powers 359158
_F2xqXQ_one 373303
F2xq_pow 377981
ZM_to_F2m 404074
F2xX_add 420133
pol1_F2xX 444542
F2xq_trace 459366
F2xX_F2x_mul 478247
_F2xqXQ_cmul 478247
F2xq_div 504161
_F2xq_red 516839
F2xqX_divrem 538300
F2x_F2xqV_eval 606774
F2xqX_red 660702
F2x_deriv 678182
F2xqX_rem 744548
_F2xq_one 858762
_F2xq_sqr 935555
F2x_slice 1013460
F2c_to_ZC 1051304
Rg_to_F2xq 1146003
_F2xq_mul 1245151
F2x_extgcd 1257161
F2xq_inv 1257161
F2xq_invsafe 1257161
_F2xq_add 1296184
F2x_gcd 1326159
F2x_to_F2v 1341955
_F2xq_cmul 1679306
F2xX_renormalize 2164610
ZV_to_F2v 2241099
F2x_mulspec_basecase 4978411
F2xq_sqr 6297266
F2x_sqr 6460988
F2xq_mul 8245261
F2x_divrem 11401013
F2x_mul1 26079226
F2x_shiftip 31068062
F2v_add_inplace 31353292
F2x_rem 34869240
F2x_mul 35218785
F2x_mulspec 35239779
F2x_add 36760229
F2x_degree 54964629
F2x_addshiftip 107505414
F2x_addshiftipspec 134545906
F2x_degree_lg 204495502

Generated by: LCOV version 1.11