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 18586-b372913) Lines: 893 952 93.8 %
Date: 2016-02-08 Functions: 106 108 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 483 607 79.6 %

Function Name Sort by function name Hit count Sort by hit count
F2x_degree_lg 122785308
F2x_addshiftip 72299387
F2x_mulspec 33242888
F2x_shiftip 33104357
F2v_add_inplace 28403997
F2x_degree 27356698
F2x_mul1 21873468
F2x_rem 15756489
F2x_add 13432858
F2x_addshift 11825695
F2x_mul 10780152
F2x_divrem 9635647
F2x_addspec 9454482
F2x_sqr 2204940
ZV_to_F2v 2144101
F2xq_sqr 2041293
F2xq_mul 1564458
F2x_gcd 1269574
F2c_to_ZC 1012374
_F2xq_mul 506487
F2xq_inv 443232
F2xq_invsafe 443231
F2x_extgcd 443231
_F2xq_sqr 423855
ZM_to_F2m 382211
_F2xq_cmul 374943
_F2xq_add 345558
F2x_to_F2v 339376
F2xq_div 333779
F2xq_pow 289206
_F2xq_pow 283877
F2x_deriv 282295
F2m_to_ZM 195988
_F2xq_one 166947
Rg_to_F2xq 165343
ZX_to_F2x 162620
F2x_shift 116788
Flx_to_F2x 116614
F2x_shiftpos 116298
_F2xq_red 115417
F2x_is_smooth_squarefree 109956
F2x_to_ZX 104383
F2x_is_smooth 95417
F2xq_easylog 84308
F2x_pow2n 81760
F2xq_trace 75594
rel_Coppersmith 54019
F2xq_matrix_pow 52137
F2xq_powers 52137
F2xV_to_F2m 52137
F2xq_log 51933
F2x_valrem 45638
F2x_to_Flx 43045
F2x_deflate 37170
F2x_even_odd 35205
F2xq_sqrt_fast 35205
F2xq_Artin_Schreier 31137
F2x_F2xq_eval 29239
F2x_sqrt 18123
F2xq_autpow_sqr 16688
F2x_issquare 14539
F2xq_autpow_mul 12537
mkF2 11485
F2xq_sqrt 8615
F2xq_autpow 8433
F2x_is_x 8433
RgV_to_F2v 7686
F2x_factorel 7504
Flv_to_F2v 6034
F2x_1_add 4389
F2xq_powu 3829
F2c_to_Flc 3374
F2c_to_mod 3045
Z_to_F2x 1813
ZXX_to_F2xX 1673
F2xC_to_ZXC 1673
F2m_to_Flm 1232
Flm_to_F2m 1232
_F2xq_rmul 728
F2xq_sqrtn 658
F2x_shiftneg 490
F2xq_order 347
F2x_halfgcd_i 315
F2x_halfgcd 315
RgM_to_F2m 287
F2x_eval 196
_F2xq_equal0 182
_F2xq_neg 161
RgX_to_F2x 126
F2xq_log_find_rel 119
_F2xq_s 119
F2m_to_mod 112
_F2xq_inv 91
gener_F2xq 84
_F2xq_rand 84
get_F2xq_field 70
F2xq_log_Coppersmith_d 42
F2v_slice 28
F2xq_log_from_rel 28
F2xq_log_Coppersmith_rec 14
F2m_rowslice 14
F2xq_log_index 7
F2xq_conjvec 7
check_kernel 7
F2xq_log_Coppersmith 7
smallirred_F2x 7
F2x_F2xqV_eval 0
_F2xq_zero 0

Generated by: LCOV version 1.9