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.1 lcov report (development 22726-9e20c6a88) Lines: 1253 1351 92.7 %
Date: 2018-06-23 05:36:28 Functions: 111 119 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 19957
F2xV_to_ZXV_inplace 144674
F2x_Berlekamp_i 11710
F2x_Berlekamp_ker 10617
F2x_Cantor_i 64542
F2x_ddf 7
F2x_ddf_simple 79982
F2x_ddf_to_ddf2 7
F2x_degfact 0
F2x_degfact_2 7140
F2x_edf_simple 9787
F2x_factor 15221
F2x_factor_2 105609
F2x_factor_Cantor 64542
F2x_factor_Shoup 79976
F2x_factor_deg2 112756
F2x_factor_i 189007
F2x_factor_squarefree 76244
F2x_is_irred 238
F2x_is_irred_2 7
F2x_quad_factortype 58731
F2x_split_Berlekamp 14578
F2xq_frobtrace 6495
FE_concat 482027
Fl_disc_bc 21145384
Fl_nonsquare 28
FlxV_to_ZXV_inplace 730709
Flx_Xn1 140
Flx_Xnm1 126
Flx_cubic_root 174317
Flx_ddf 0
Flx_ddf_Shoup 1085485
Flx_degfact 1115196
Flx_degfact_2 751660
Flx_edf 154117
Flx_edf_rec 349031
Flx_edf_simple 127392
Flx_factor 140640
Flx_factor_2 432125
Flx_factor_Cantor 416865
Flx_factor_Shoup 440483
Flx_factor_deg2 1183841
Flx_factor_i 1985263
Flx_factor_squarefree 772407
Flx_is_irred 1057
Flx_is_irred_2 56
Flx_isirred_Cantor 1057
Flx_ispower 126
Flx_nbfact 94598
Flx_nbfact_Frobenius 94598
Flx_nbfact_by_degree 191992
Flx_nbroots 2406317
Flx_oneroot 3093588
Flx_oneroot_i 3133250
Flx_oneroot_mod_2 56
Flx_oneroot_split 32255
Flx_otherroot 12251887
Flx_quad_factortype 734573
Flx_quad_root 20415076
Flx_root_mod_2 8881
Flx_roots 21916767
Flx_roots_i 21951050
Flx_simplefact_Cantor 354639
FpX_ddf 7
FpX_ddf_Shoup 669
FpX_ddf_degree 4389
FpX_ddf_i 0
FpX_degfact 42
FpX_degfact_2 14
FpX_edf 224
FpX_edf_rec 462
FpX_edf_simple 0
FpX_factor 874324
FpX_factor_2 734
FpX_factor_Cantor 616
FpX_factor_Shoup 655
FpX_factor_Yun 672
FpX_factor_deg2 755
FpX_factor_i 1385
FpX_factor_squarefree 777
FpX_is_irred 77
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_isirred_Cantor 0
FpX_ispower 168
FpX_nbfact 0
FpX_nbfact_Frobenius 0
FpX_nbroots 99148
FpX_oneroot 12313
FpX_oneroot_i 4848
FpX_oneroot_split 924
FpX_otherroot 3146
FpX_quad_factortype 21
FpX_quad_root 7532
FpX_roots 70932
FpX_roots_i 3110
FpX_simplefact_Cantor 14
FpX_split_part 142816
ZX_factmod_init 874450
ZX_rootmod_init 83245
all_roots_mod_p 42
cmpGuGu 3212196
ddf_to_ddf2 7
ddf_to_ddf2_i 14
ddf_to_nbfact 536276
good_root_of_unity 217
prime_fact 70
rootmod_aux 70932
split_Flx_cut_out_roots 4927162
split_add 5176760
split_add_done 391609
split_done 372233
split_init 4930565
split_moveto_done 5176432
split_nonsquares 4809
split_squares 4809
split_todo 337068
trivial_fact 67713
vddf_to_simplefact 354779

Generated by: LCOV version 1.13