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 to exceed 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 23171-a5c0ed393) Lines: 1244 1341 92.8 %
Date: 2018-10-20 05:38:07 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
FpX_oneroot_i 4848
split_nonsquares 4853
split_squares 4853
F2xq_frobtrace 6560
F2x_degfact_2 7140
FpX_quad_root 7532
Flx_root_mod_2 8881
F2x_edf_simple 9787
F2x_Berlekamp_ker 10614
F2x_Berlekamp_i 11709
FpX_oneroot 12313
F2x_split_Berlekamp 14569
F2x_factor 15211
F2xV_to_FlxV_inplace 19985
Flx_oneroot_split 32250
F2x_quad_factortype 58731
F2x_Cantor_i 64618
F2x_factor_Cantor 64618
trivial_fact 67755
FpX_roots 70939
rootmod_aux 70939
F2x_factor_squarefree 76320
F2x_factor_Shoup 80046
F2x_ddf_simple 80055
ZX_rootmod_init 83252
Flx_nbfact 95109
Flx_nbfact_Frobenius 95109
FpX_nbroots 99148
F2x_factor_2 105714
F2x_factor_deg2 112861
Flx_edf_simple 128353
Flx_factor 141035
FpX_split_part 142823
F2xV_to_ZXV_inplace 144828
Flx_edf 154474
Flx_cubic_root 174064
F2x_factor_i 189188
Flx_nbfact_by_degree 191992
split_todo 337199
Flx_edf_rec 349593
Flx_simplefact_Cantor 355451
vddf_to_simplefact 355591
split_done 372359
split_add_done 391734
Flx_factor_Cantor 417274
Flx_factor_2 432265
Flx_factor_Shoup 440873
FE_concat 482510
ddf_to_nbfact 537175
FlxV_to_ZXV_inplace 730891
Flx_quad_factortype 734573
Flx_degfact_2 751660
Flx_factor_squarefree 773628
FpX_factor 874660
ZX_factmod_init 874786
Flx_ddf_Shoup 1087212
Flx_degfact 1116015
Flx_factor_deg2 1183981
Flx_factor_i 1986659
Flx_nbroots 2406539
Flx_oneroot 3088204
Flx_oneroot_i 3127862
cmpGuGu 3218178
split_Flx_cut_out_roots 4927759
split_init 4931645
split_moveto_done 5176415
split_add 5177033
Flx_otherroot 12255537
Flx_quad_root 20432162
Fl_disc_bc 21165678
Flx_roots 21931400
Flx_roots_i 21969075

Generated by: LCOV version 1.13