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.12.0 lcov report (development 22872-edcf83abb) Lines: 1246 1344 92.7 %
Date: 2018-07-20 05:36:03 Functions: 110 118 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_degfact 0
Flx_ddf 0
FpX_ddf_i 0
FpX_edf_simple 0
FpX_is_totally_split 0
FpX_isirred_Cantor 0
FpX_nbfact 0
FpX_nbfact_Frobenius 0
F2x_ddf 7
F2x_ddf_to_ddf2 7
F2x_is_irred_2 7
FpX_ddf 7
FpX_is_irred_2 7
ddf_to_ddf2 7
FpX_degfact_2 14
FpX_simplefact_Cantor 14
ddf_to_ddf2_i 14
FpX_quad_factortype 21
FpX_degfact 42
all_roots_mod_p 42
Flx_is_irred_2 56
Flx_oneroot_mod_2 56
prime_fact 70
FpX_is_irred 77
Flx_Xnm1 126
Flx_ispower 126
Flx_Xn1 140
FpX_ispower 168
good_root_of_unity 217
FpX_edf 224
F2x_is_irred 238
FpX_edf_rec 462
FpX_factor_Cantor 616
FpX_factor_Shoup 655
FpX_ddf_Shoup 669
FpX_factor_Yun 672
FpX_factor_2 734
FpX_factor_deg2 755
FpX_factor_squarefree 777
FpX_oneroot_split 924
Flx_is_irred 1057
Flx_isirred_Cantor 1057
FpX_factor_i 1385
FpX_roots_i 3110
FpX_otherroot 3146
FpX_ddf_degree 4389
split_nonsquares 4809
split_squares 4809
FpX_oneroot_i 4848
F2xq_frobtrace 6599
F2x_degfact_2 7140
FpX_quad_root 7532
Flx_root_mod_2 8881
F2x_edf_simple 9790
F2x_Berlekamp_ker 10615
F2x_Berlekamp_i 11707
FpX_oneroot 12313
F2x_split_Berlekamp 14571
F2x_factor 15218
F2xV_to_FlxV_inplace 19985
Flx_oneroot_split 32246
F2x_quad_factortype 58734
F2x_Cantor_i 64543
F2x_factor_Cantor 64543
trivial_fact 67720
FpX_roots 70939
rootmod_aux 70939
F2x_factor_squarefree 76241
F2x_factor_Shoup 79972
F2x_ddf_simple 79978
ZX_rootmod_init 83252
Flx_nbfact 94626
Flx_nbfact_Frobenius 94626
FpX_nbroots 99148
F2x_factor_2 105644
F2x_factor_deg2 112791
Flx_edf_simple 127925
Flx_factor 140763
FpX_split_part 142823
F2xV_to_ZXV_inplace 144681
Flx_edf 154084
Flx_cubic_root 174316
F2x_factor_i 189040
Flx_nbfact_by_degree 191992
split_todo 337158
Flx_edf_rec 348900
Flx_simplefact_Cantor 354639
vddf_to_simplefact 354779
split_done 372319
split_add_done 391694
Flx_factor_Cantor 416889
Flx_factor_2 432344
Flx_factor_Shoup 440466
FE_concat 482049
ddf_to_nbfact 536286
FlxV_to_ZXV_inplace 730858
Flx_quad_factortype 734573
Flx_degfact_2 751660
Flx_factor_squarefree 772431
FpX_factor 874480
ZX_factmod_init 874606
Flx_ddf_Shoup 1085493
Flx_degfact 1115196
Flx_factor_deg2 1184060
Flx_factor_i 1985535
Flx_nbroots 2406352
Flx_oneroot 3093601
Flx_oneroot_i 3133250
cmpGuGu 3212226
split_Flx_cut_out_roots 4927191
split_init 4930403
split_moveto_done 5176701
split_add 5177156
Flx_otherroot 12255950
Flx_quad_root 20422033
Fl_disc_bc 21152259
Flx_roots 21919729
Flx_roots_i 21958209

Generated by: LCOV version 1.13