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 17110-9967e23) Lines: 869 938 92.6 %
Date: 2014-11-26 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 73539819
F2x_addshiftip 43792471
F2x_mulspec 24475734
F2x_shiftip 24399876
F2x_degree 16148588
F2x_mul1 15818750
F2v_add_inplace 15350997
F2x_add 9053408
F2x_addshift 9041798
F2x_rem 8356506
F2x_mul 7313482
F2x_addspec 7238723
F2x_divrem 6575348
ZV_to_F2v 1313130
F2x_sqr 1215672
F2xq_sqr 1149552
F2xq_mul 878201
F2x_gcd 758815
F2c_to_ZC 628990
F2xq_inv 255609
F2xq_invsafe 255609
F2x_extgcd 255609
F2x_to_F2v 239643
F2xq_div 234694
ZM_to_F2m 214980
_F2xq_mul 180720
F2x_deriv 179951
_F2xq_sqr 159417
F2m_to_ZM 110675
_F2xq_one 72795
Rg_to_F2xq 69800
F2x_to_ZX 66075
F2x_is_smooth_squarefree 65530
_F2xq_cmul 64501
Flx_to_F2x 63170
F2x_shift 58040
F2x_shiftpos 57710
F2x_is_smooth 55280
_F2xq_add 54081
F2xq_trace 47581
rel_Coppersmith 38585
F2xq_matrix_pow 36784
F2xq_powers 36784
F2xV_to_F2m 36784
_F2xq_red 36406
F2x_pow2n 33060
F2x_valrem 31950
F2x_deflate 26170
F2xq_Artin_Schreier 22089
F2x_sqrt 12505
F2x_to_Flx 11420
F2x_F2xq_eval 10705
F2x_issquare 10250
F2x_even_odd 8742
F2xq_sqrt_fast 8742
F2xq_autpow_sqr 6239
RgV_to_F2v 5445
mkF2 5382
F2x_factorel 5230
F2xq_pow 4628
F2xq_autpow_mul 4456
Flv_to_F2v 4310
ZX_to_F2x 3840
F2xq_sqrt 3535
F2xq_autpow 3432
F2x_is_x 3432
F2xq_powu 2715
F2c_to_Flc 2410
F2c_to_mod 2150
Z_to_F2x 1250
ZXX_to_F2xX 1170
F2xC_to_ZXC 1170
F2m_to_Flm 880
Flm_to_F2m 880
_F2xq_pow 769
F2x_1_add 475
_F2xq_rmul 475
F2x_shiftneg 330
F2xq_order 252
RgM_to_F2m 185
_F2xq_equal0 105
F2x_halfgcd_i 105
F2x_halfgcd 105
_F2xq_neg 100
F2m_to_mod 70
_F2xq_s 70
gener_F2xq 60
_F2xq_inv 55
_F2xq_rand 50
F2xq_easylog 45
F2xq_sqrtn 45
get_F2xq_field 40
F2xq_log_Coppersmith_d 30
F2xq_log_from_rel 30
F2v_slice 20
F2xq_log 15
F2xq_log_find_rel 10
F2xq_log_Coppersmith_rec 10
F2m_rowslice 10
F2xq_log_index 5
F2xq_conjvec 5
check_kernel 5
F2xq_log_Coppersmith 5
smallirred_F2x 5
F2x_F2xqV_eval 0
RgX_to_F2x 0
_F2xq_zero 0

Generated by: LCOV version 1.9