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 17707-04f73e4) Lines: 869 938 92.6 %
Date: 2015-03-30 Functions: 104 107 97.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 473 603 78.4 %

Function Name Sort by function name Hit count Sort by hit count
F2c_to_Flc 3374
F2c_to_ZC 931329
F2c_to_mod 3045
F2m_rowslice 14
F2m_to_Flm 1232
F2m_to_ZM 168746
F2m_to_mod 112
F2v_add_inplace 28301437
F2v_slice 28
F2xC_to_ZXC 1673
F2xV_to_F2m 51791
F2x_1_add 879
F2x_F2xqV_eval 0
F2x_F2xq_eval 17460
F2x_add 13082580
F2x_addshift 11826380
F2x_addshiftip 71376343
F2x_addspec 9455343
F2x_deflate 36759
F2x_degree 26328505
F2x_degree_lg 120119125
F2x_deriv 270213
F2x_divrem 9384450
F2x_even_odd 25896
F2x_extgcd 356908
F2x_factorel 7504
F2x_gcd 1265676
F2x_halfgcd 315
F2x_halfgcd_i 315
F2x_is_smooth 95417
F2x_is_smooth_squarefree 109956
F2x_is_x 4978
F2x_issquare 14539
F2x_mul 10233892
F2x_mul1 21358147
F2x_mulspec 32697715
F2x_pow2n 81760
F2x_rem 15190681
F2x_shift 116788
F2x_shiftip 32589235
F2x_shiftneg 490
F2x_shiftpos 116298
F2x_sqr 1981105
F2x_sqrt 17780
F2x_to_F2v 336684
F2x_to_Flx 30133
F2x_to_ZX 95343
F2x_valrem 45304
F2xq_Artin_Schreier 30878
F2xq_autpow 4978
F2xq_autpow_mul 7543
F2xq_autpow_sqr 9903
F2xq_conjvec 7
F2xq_div 327178
F2xq_easylog 63
F2xq_inv 356909
F2xq_invsafe 356909
F2xq_log 21
F2xq_log_Coppersmith 7
F2xq_log_Coppersmith_d 42
F2xq_log_Coppersmith_rec 14
F2xq_log_find_rel 119
F2xq_log_from_rel 28
F2xq_log_index 7
F2xq_matrix_pow 51791
F2xq_mul 1277199
F2xq_order 382
F2xq_pow 6511
F2xq_powers 51791
F2xq_powu 3794
F2xq_sqr 1817583
F2xq_sqrt 5158
F2xq_sqrt_fast 25897
F2xq_sqrtn 63
F2xq_trace 65566
Flm_to_F2m 1232
Flv_to_F2v 6034
Flx_to_F2x 104519
RgM_to_F2m 280
RgV_to_F2v 7665
RgX_to_F2x 0
Rg_to_F2xq 101639
ZM_to_F2m 327562
ZV_to_F2v 1979846
ZXX_to_F2xX 1673
ZX_to_F2x 5698
Z_to_F2x 1813
_F2xq_add 301737
_F2xq_cmul 319176
_F2xq_equal0 182
_F2xq_inv 91
_F2xq_mul 287553
_F2xq_neg 161
_F2xq_one 128717
_F2xq_pow 1168
_F2xq_rand 70
_F2xq_red 77503
_F2xq_rmul 728
_F2xq_s 119
_F2xq_sqr 229036
_F2xq_zero 0
check_kernel 7
gener_F2xq 84
get_F2xq_field 70
mkF2 8030
rel_Coppersmith 54019
smallirred_F2x 7

Generated by: LCOV version 1.9