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 16804-345a01c) Lines: 864 938 92.1 %
Date: 2014-09-20 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
F2c_to_Flc 3374
F2c_to_ZC 867013
F2c_to_mod 3010
F2m_rowslice 14
F2m_to_Flm 1232
F2m_to_ZM 152026
F2m_to_mod 98
F2v_add_inplace 21450937
F2v_slice 28
F2xC_to_ZXC 1624
F2xV_to_F2m 51456
F2x_1_add 661
F2x_F2xqV_eval 0
F2x_F2xq_eval 15060
F2x_add 12516144
F2x_addshift 11587545
F2x_addshiftip 63405059
F2x_addspec 9225571
F2x_deflate 36302
F2x_degree 23463399
F2x_degree_lg 106697830
F2x_deriv 255222
F2x_divrem 9163613
F2x_even_odd 12202
F2x_extgcd 358601
F2x_factorel 7280
F2x_gcd 1107372
F2x_halfgcd 126
F2x_halfgcd_i 126
F2x_is_smooth 81634
F2x_is_smooth_squarefree 95991
F2x_is_x 4793
F2x_issquare 14357
F2x_mul 10083335
F2x_mul1 20993539
F2x_mulspec 32116387
F2x_pow2n 54838
F2x_rem 12604246
F2x_shift 89180
F2x_shiftip 32010065
F2x_shiftneg 175
F2x_shiftpos 89005
F2x_sqr 1765080
F2x_sqrt 17507
F2x_to_F2v 336179
F2x_to_Flx 15820
F2x_to_ZX 91312
F2x_valrem 44184
F2xq_Artin_Schreier 31275
F2xq_autpow 4793
F2xq_autpow_mul 6315
F2xq_autpow_sqr 8731
F2xq_conjvec 7
F2xq_div 329320
F2xq_easylog 63
F2xq_inv 358601
F2xq_invsafe 358601
F2xq_log 21
F2xq_log_Coppersmith 7
F2xq_log_Coppersmith_d 14
F2xq_log_Coppersmith_rec 14
F2xq_log_find_rel 28
F2xq_log_from_rel 7
F2xq_log_index 7
F2xq_matrix_pow 51456
F2xq_mul 1232185
F2xq_order 372
F2xq_pow 6454
F2xq_powers 51456
F2xq_powu 3724
F2xq_sqr 1655404
F2xq_sqrt 4967
F2xq_sqrt_fast 12202
F2xq_sqrtn 56
F2xq_trace 66656
Flm_to_F2m 1232
Flv_to_F2v 6034
Flx_to_F2x 87535
RgM_to_F2m 259
RgV_to_F2v 7623
RgX_to_F2x 0
Rg_to_F2xq 97720
ZM_to_F2m 294847
ZV_to_F2v 1800155
ZXX_to_F2xX 1624
ZX_to_F2x 5347
Z_to_F2x 1720
_F2xq_add 75800
_F2xq_cmul 90461
_F2xq_equal0 147
_F2xq_inv 77
_F2xq_mul 253959
_F2xq_neg 140
_F2xq_one 102051
_F2xq_pow 1088
_F2xq_rand 70
_F2xq_red 51148
_F2xq_rmul 665
_F2xq_s 98
_F2xq_sqr 222965
_F2xq_zero 0
check_kernel 7
gener_F2xq 84
get_F2xq_field 56
mkF2 7572
rel_Coppersmith 54019
smallirred_F2x 7

Generated by: LCOV version 1.9