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-bordeaux.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 - FpX_factor.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 1405 1600 87.8 %
Date: 2017-04-27 05:33:52 Functions: 126 137 92.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 14346
F2xV_to_ZXV_inplace 96486
F2x_Berlekamp_i 106848
F2x_Berlekamp_ker 14724
F2x_ddf_simple 21950
F2x_degfact 0
F2x_degfact_2 858
F2x_edf_simple 10715
F2x_factcantor 12861
F2x_factcantor_i 19407
F2x_factor 12
F2x_factor_2 63570
F2x_factor_Cantor 14632
F2x_factor_Shoup 20289
F2x_factor_deg2 64434
F2x_factor_squarefree 61618
F2x_is_irred 204
F2x_is_irred_2 6
F2x_isirred_Cantor 204
F2x_quad_factortype 22890
F2x_simplefact_Cantor 1482
F2x_simplefact_Shoup 1518
F2x_split_Berlekamp 42336
F2xq_frobtrace 7009
FE_concat 340222
FE_setlg 329723
Fl_disc_bc 14094622
Fl_nonsquare 6
FlxV_to_ZXV_inplace 560025
Flx_Berlekamp_i 589113
Flx_Berlekamp_ker 217727
Flx_Xn1 6
Flx_Xnm1 12
Flx_addmul_inplace 641220
Flx_cubic_root 182218
Flx_cut_out_roots 12
Flx_ddf 429178
Flx_degfact 417624
Flx_degfact_2 114978
Flx_edf 15842
Flx_edf_rec 27722
Flx_edf_simple 36998
Flx_factcantor 6258
Flx_factcantor_i 447336
Flx_factor 53898
Flx_factor_2 296008
Flx_factor_Cantor 23784
Flx_factor_Shoup 26453
Flx_factor_deg2 410986
Flx_factor_squarefree 608729
Flx_is_irred 498
Flx_is_irred_2 0
Flx_isirred_Cantor 498
Flx_nbfact 48474
Flx_nbfact_Frobenius 48474
Flx_nbfact_by_degree 52716
Flx_nbroots 2047538
Flx_oneroot 1069916
Flx_oneroot_i 1099500
Flx_oneroot_mod_2 12
Flx_oneroot_split 23364
Flx_otherroot 9310937
Flx_quad_factortype 100284
Flx_quad_root 13996535
Flx_root_mod_2 5934
Flx_roots 16630332
Flx_roots_i 16675306
Flx_roots_naive 12
Flx_simplefact_Cantor 300318
Flx_simplefact_Shoup 301158
Flx_split_Berlekamp 289685
FpX_Berlekamp_i 654705
FpX_Berlekamp_ker 36
FpX_ddf 3516
FpX_degfact 0
FpX_degfact_2 12
FpX_edf 12
FpX_edf_rec 180
FpX_edf_simple 0
FpX_factcantor 0
FpX_factcantor_i 30
FpX_factor 654645
FpX_factor_2 60
FpX_factor_Cantor 6
FpX_factor_Shoup 12
FpX_factor_Yun 222
FpX_factor_deg2 78
FpX_factor_squarefree 624
FpX_is_irred 12
FpX_is_irred_2 6
FpX_is_totally_split 0
FpX_isirred_Cantor 0
FpX_nbfact 24
FpX_nbfact_Frobenius 3504
FpX_nbroots 84444
FpX_oneroot 9252
FpX_oneroot_i 3018
FpX_oneroot_split 0
FpX_otherroot 2376
FpX_quad_factortype 18
FpX_quad_root 5394
FpX_roots 54960
FpX_roots_i 2328
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 36
FpX_split_part 120174
Mod0pX 12
ZX_factmod_init 718869
all_roots_mod_p 36
cmpGuGu 2005999
deg1_Flx 123228
factcantor 60
factcantor0 84
factcantor_i 84
factmod 72
factmod_aux 156
factmod_init 228
factormod0 90
good_root_of_unity 0
prime_fact 60
rootmod 60
rootmod0 72
rootmod2 12
rootmod_aux 55032
simplefactmod 24
split_Flx_cut_out_roots 3648589
split_add 3814061
split_add_done 271033
split_done 254913
split_init 3651517
split_moveto_done 3814462
split_nonsquares 12
split_squares 12
split_todo 234364
trivial_fact 696
zero_fact_intmod 12

Generated by: LCOV version 1.11