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 16791-0d1274a) Lines: 864 938 92.1 %
Date: 2014-09-16 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 76149044
F2x_addshiftip 45246785
F2x_mulspec 24032777
F2x_shiftip 23956841
F2x_degree 16748675
F2x_mul1 15556715
F2v_add_inplace 15317605
F2x_add 9008250
F2x_rem 9000466
F2x_addshift 8847051
F2x_mul 7232525
F2x_addspec 7071943
F2x_divrem 6537471
ZV_to_F2v 1285825
F2x_sqr 1260402
F2xq_sqr 1182062
F2xq_mul 879193
F2x_gcd 790980
F2c_to_ZC 619295
F2xq_inv 255863
F2xq_invsafe 255863
F2x_extgcd 255863
F2x_to_F2v 239851
F2xq_div 234948
ZM_to_F2m 210605
F2x_deriv 182296
_F2xq_mul 181143
_F2xq_sqr 159277
F2m_to_ZM 108590
_F2xq_one 72853
Rg_to_F2xq 69800
F2x_is_smooth_squarefree 68565
F2x_to_ZX 65224
_F2xq_cmul 64571
F2x_shift 63700
F2x_shiftpos 63575
Flx_to_F2x 62525
F2x_is_smooth 58310
_F2xq_add 54110
F2xq_trace 47606
F2x_pow2n 39170
rel_Coppersmith 38585
F2xq_matrix_pow 36746
F2xq_powers 36746
F2xV_to_F2m 36746
_F2xq_red 36502
F2x_valrem 31560
F2x_deflate 25930
F2xq_Artin_Schreier 22331
F2x_sqrt 12505
F2x_to_Flx 11300
F2x_F2xq_eval 10746
F2x_issquare 10255
F2x_even_odd 8714
F2xq_sqrt_fast 8714
F2xq_autpow_sqr 6229
RgV_to_F2v 5445
mkF2 5406
F2x_factorel 5200
F2xq_pow 4610
F2xq_autpow_mul 4507
Flv_to_F2v 4310
ZX_to_F2x 3821
F2xq_sqrt 3545
F2xq_autpow 3421
F2x_is_x 3421
F2xq_powu 2660
F2c_to_Flc 2410
F2c_to_mod 2150
Z_to_F2x 1228
ZXX_to_F2xX 1160
F2xC_to_ZXC 1160
F2m_to_Flm 880
Flm_to_F2m 880
_F2xq_pow 778
F2x_1_add 475
_F2xq_rmul 475
F2xq_order 264
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