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 - F2x.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16741-1378b1c) Lines: 864 938 92.1 %
Date: 2014-08-17 Functions: 104 107 97.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 467 603 77.4 %

Function Name Sort by function name Hit count Sort by hit count
F2x_degree_lg 47880432
F2x_addshiftip 25229680
F2v_add_inplace 14821067
F2x_degree 12585999
F2x_rem 8877430
F2x_add 4045803
F2x_mulspec 3755014
F2x_shiftip 3678935
F2x_mul1 3193008
F2x_mul 2783160
F2x_divrem 2538389
ZV_to_F2v 1284700
F2x_sqr 1224120
F2xq_sqr 1145780
F2xq_mul 798000
F2x_gcd 790786
F2c_to_ZC 618770
F2x_addspec 579577
F2x_addshift 564968
F2x_to_F2v 227921
F2xq_inv 222684
F2xq_invsafe 222684
F2x_extgcd 222684
ZM_to_F2m 209930
F2xq_div 201789
F2x_deriv 180985
_F2xq_mul 168336
_F2xq_sqr 158489
F2m_to_ZM 108215
_F2xq_one 71224
Rg_to_F2xq 69670
F2x_is_smooth_squarefree 68565
F2x_to_ZX 65083
F2x_shift 63700
F2x_shiftpos 63575
Flx_to_F2x 61757
F2x_is_smooth 58310
_F2xq_cmul 52686
F2xq_trace 46324
_F2xq_add 42459
F2x_pow2n 39170
rel_Coppersmith 38585
F2xq_matrix_pow 36533
F2xq_powers 36533
F2xV_to_F2m 36533
_F2xq_red 35086
F2x_valrem 31547
F2x_deflate 25919
F2xq_Artin_Schreier 22118
F2x_sqrt 12505
F2x_to_Flx 10600
F2x_F2xq_eval 10512
F2x_issquare 10255
F2x_even_odd 8037
F2xq_sqrt_fast 8037
F2xq_autpow_sqr 6075
RgV_to_F2v 5445
mkF2 5340
F2x_factorel 5200
F2xq_pow 4592
F2xq_autpow_mul 4427
Flv_to_F2v 4310
ZX_to_F2x 3834
F2xq_sqrt 3469
F2xq_autpow 3355
F2x_is_x 3355
F2xq_powu 2560
F2c_to_Flc 2410
F2c_to_mod 2150
Z_to_F2x 1222
ZXX_to_F2xX 1160
F2xC_to_ZXC 1160
F2m_to_Flm 880
Flm_to_F2m 880
_F2xq_pow 745
_F2xq_rmul 475
F2x_1_add 465
F2xq_order 257
RgM_to_F2m 185
F2x_shiftneg 125
_F2xq_equal0 105
_F2xq_neg 100
F2x_halfgcd_i 90
F2x_halfgcd 90
F2m_to_mod 70
_F2xq_s 70
gener_F2xq 60
_F2xq_inv 55
_F2xq_rand 50
F2xq_easylog 45
get_F2xq_field 40
F2xq_sqrtn 40
F2v_slice 20
F2xq_log_find_rel 20
F2xq_log 15
F2xq_log_Coppersmith_rec 10
F2xq_log_Coppersmith_d 10
F2m_rowslice 10
F2xq_log_index 5
F2xq_conjvec 5
check_kernel 5
F2xq_log_Coppersmith 5
F2xq_log_from_rel 5
smallirred_F2x 5
F2x_F2xqV_eval 0
RgX_to_F2x 0
_F2xq_zero 0

Generated by: LCOV version 1.9