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.10.0 lcov report (development 20277-2bd9113) Lines: 1261 1341 94.0 %
Date: 2017-02-21 05:49:51 Functions: 157 162 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2c_to_ZC 415921
F2c_to_mod 3045
F2m_rowslice 14
F2m_to_Flm 1400
F2m_to_ZM 96562
F2m_to_mod 112
F2v_add_inplace 31276057
F2v_slice 28
F2v_to_Flv 3850
F2xC_to_FlxC 0
F2xC_to_ZXC 2051
F2xV_to_F2m 229756
F2xXC_to_ZXXC 224
F2xX_F2x_mul 478247
F2xX_add 420133
F2xX_deriv 80332
F2xX_renormalize 2222087
F2xX_to_Kronecker 228494
F2xX_to_ZXX 1813
F2xY_F2xqV_evalx 135492
F2xY_F2xq_evalx 0
F2xY_degreex 205093
F2x_1_add 186360
F2x_F2xqV_eval 606774
F2x_F2xq_eval 35975
F2x_Frobenius 327027
F2x_add 38737531
F2x_addshift 13386
F2x_addshiftip 154414362
F2x_addshiftipspec 182800757
F2x_addspec 17997
F2x_deflate 0
F2x_degree 78398999
F2x_degree_lg 290738176
F2x_deriv 866566
F2x_divrem 13167509
F2x_eval 224
F2x_even_odd 41368
F2x_extgcd 1260056
F2x_factorel 15265
F2x_gcd 3225652
F2x_halfgcd 523
F2x_halfgcd_i 523
F2x_is_smooth 255622
F2x_is_smooth_squarefree 291164
F2x_is_x 15040
F2x_issquare 35673
F2x_matFrobenius 229756
F2x_mul 35391823
F2x_mul1 26213795
F2x_mulspec 35412844
F2x_mulspec_basecase 5016118
F2x_pow2n 214285
F2x_rem 55900867
F2x_shift 315948
F2x_shiftip 31240291
F2x_shiftneg 1627
F2x_shiftpos 314317
F2x_slice 1013460
F2x_sqr 8727812
F2x_sqrt 78915
F2x_to_F2v 1340789
F2x_to_Flx 90542
F2x_to_ZX 147971
F2x_valrem 53248
F2xqXQV_autpow 70518
F2xqXQV_auttrace 2541
F2xqXQ_autpow_mul 33306
F2xqXQ_autpow_sqr 88816
F2xqXQ_auttrace_mul 6685
F2xqXQ_auttrace_sqr 4529
F2xqXQ_mul 114247
F2xqXQ_pow 7
F2xqXQ_powers 6713
F2xqXQ_sqr 103131
F2xqX_F2xqXQV_eval 13447
F2xqX_F2xqXQ_eval 122122
F2xqX_F2xq_mul 6895
F2xqX_F2xq_mul_to_monic 203119
F2xqX_divrem 538307
F2xqX_gcd 166866
F2xqX_mul 114247
F2xqX_normalize 203119
F2xqX_red 660702
F2xqX_rem 744555
F2xqX_sqr 103292
F2xq_Artin_Schreier 212562
F2xq_autpow 15039
F2xq_autpow_mul 12623
F2xq_autpow_sqr 23325
F2xq_conjvec 7
F2xq_div 504161
F2xq_easylog 75110
F2xq_inv 1260056
F2xq_invsafe 1260056
F2xq_log 40768
F2xq_log_Coppersmith 14
F2xq_log_Coppersmith_d 139
F2xq_log_Coppersmith_rec 28
F2xq_log_Coppersmith_worker 2034
F2xq_log_find_rel 153
F2xq_log_from_rel 113
F2xq_log_index 14
F2xq_matrix_pow 229756
F2xq_mul 8330477
F2xq_order 350
F2xq_pow 390318
F2xq_powers 358563
F2xq_powu 0
F2xq_sqr 8301205
F2xq_sqrt 29508
F2xq_sqrt_fast 41372
F2xq_sqrtn 7784
F2xq_trace 459365
Flm_to_F2m 1400
Flv_to_F2v 7406
FlxC_to_F2xC 14854
FlxXC_to_F2xXC 161
FlxX_to_F2xX 1736
Flx_to_F2x 187172
Kronecker_to_F2xqX 114247
RgM_to_F2m 287
RgV_to_F2v 7686
RgX_to_F2x 1218
Rg_to_F2xq 1145984
ZM_to_F2m 187900
ZV_to_F2v 1087835
ZXX_to_F2xX 2275
ZX_to_F2x 134523
Z_to_F2x 159502
_F2xqXQ_add 342713
_F2xqXQ_cmul 478247
_F2xqXQ_mul 114247
_F2xqXQ_one 373303
_F2xqXQ_red 351148
_F2xqXQ_sqr 32606
_F2xqXQ_zero 35
_F2xq_add 1296744
_F2xq_cmul 1678414
_F2xq_equal0 812
_F2xq_inv 364
_F2xq_mul 1335421
_F2xq_neg 693
_F2xq_one 858173
_F2xq_pow 341824
_F2xq_rand 9317
_F2xq_red 518609
_F2xq_rmul 2436
_F2xq_s 560
_F2xq_sqr 1116619
_F2xq_zero 259406
check_kernel 14
const_F2v 311939
gener_F2xq 154
get_F2xq_field 231
mkF2 23091
monomial_F2x 35
pol1_F2xX 444549
polx_F2xX 0
random_F2xqX 2583
rel_Coppersmith 147592
smallirred_F2x 14

Generated by: LCOV version 1.11