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 21703-2e13792) Lines: 1520 1637 92.9 %
Date: 2018-01-17 06:18:31 Functions: 134 141 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_degfact 0
Flx_is_irred_2 0
FpX_degfact 0
FpX_edf_simple 0
FpX_factcantor 0
FpX_is_totally_split 0
FpX_isirred_Cantor 0
Fl_nonsquare 6
Flx_Xn1 6
F2x_is_irred_2 7
FpX_factor_Cantor 7
FpX_is_irred_2 7
split_nonsquares 12
split_squares 12
Flx_Xnm1 13
F2x_factor 14
Flx_cut_out_roots 14
Flx_roots_naive 14
FpX_degfact_2 14
FpX_edf 14
FpX_factor_Shoup 14
FpX_is_irred 14
FpX_simplefact_Cantor 14
FpX_simplefact_Shoup 14
Mod0pX 14
rootmod2 14
zero_fact_intmod 14
FpX_quad_factortype 21
FpX_nbfact 28
all_roots_mod_p 42
simplefactmod 42
Flx_oneroot_mod_2 49
FpX_factcantor_i 49
factcantor 70
rootmod 70
prime_fact 77
rootmod0 84
factcantor0 112
factcantor_i 112
Flx_ispower 126
factormod0 126
factmod 154
FpX_ispower 168
FpX_Berlekamp_ker 171
FpX_factor_2 174
FpX_split_Berlekamp 177
FpX_factor_deg2 195
FpX_edf_rec 210
F2x_is_irred 238
F2x_isirred_Cantor 238
good_root_of_unity 238
factmod_aux 266
factmod_init 350
FpX_factor_Yun 453
Flx_is_irred 581
Flx_isirred_Cantor 581
FpX_oneroot_split 665
FpX_factor_squarefree 742
trivial_fact 952
F2x_simplefact_Cantor 1736
F2x_simplefact_Shoup 1778
FpX_roots_i 2854
FpX_otherroot 2922
FpX_nbfact_Frobenius 4214
FpX_ddf 4242
FpX_oneroot_i 4284
FpX_quad_root 6916
F2x_degfact_2 7035
Flx_factcantor 7624
F2xq_frobtrace 8328
Flx_root_mod_2 8659
FpX_oneroot 11543
F2x_edf_simple 12805
F2x_factcantor 15166
F2x_factor_Cantor 17805
F2xV_to_FlxV_inplace 18452
Flx_edf 18870
F2x_Berlekamp_ker 19455
F2x_factor_Shoup 24471
F2x_ddf_simple 26416
Flx_factor_Cantor 29888
F2x_factcantor_i 30685
Flx_oneroot_split 31420
Flx_edf_rec 32694
Flx_factor_Shoup 33006
Flx_edf_simple 45743
F2x_split_Berlekamp 52892
F2x_quad_factortype 58625
FpX_roots 70157
rootmod_aux 70241
F2x_factor_squarefree 76766
Flx_nbfact 81200
Flx_nbfact_Frobenius 81200
ddf_to_nbfact 85596
FpX_nbroots 99085
F2x_factor_2 99932
Flx_factor 101628
F2x_factor_deg2 106974
F2xV_to_ZXV_inplace 141330
FpX_split_part 142528
deg1_Flx 151412
F2x_Berlekamp_i 153293
Flx_cubic_root 171481
Flx_nbfact_by_degree 186688
Flx_Berlekamp_ker 281149
split_todo 331534
Flx_simplefact_Cantor 351008
Flx_simplefact_Shoup 351990
ddf_to_simplefact 352004
split_done 364020
Flx_split_Berlekamp 370774
split_add_done 383038
FE_concat 400458
Flx_factor_2 409407
FE_setlg 418694
Flx_ddf 653324
FlxV_to_ZXV_inplace 712486
Flx_quad_factortype 720734
Flx_degfact_2 737877
Flx_factor_squarefree 742843
Flx_Berlekamp_i 778286
FpX_factor 851594
FpX_Berlekamp_i 851699
ZX_factmod_init 933308
Flx_degfact 1097362
Flx_factcantor_i 1138987
Flx_factor_deg2 1147284
Flx_addmul_inplace 1246893
Flx_nbroots 2402593
cmpGuGu 2869725
Flx_oneroot 3068468
Flx_oneroot_i 3107102
split_Flx_cut_out_roots 4990973
split_init 4993928
split_add 5232300
split_moveto_done 5232492
Flx_otherroot 12256865
Flx_quad_root 20497376
Fl_disc_bc 21215618
Flx_roots 21935728
Flx_roots_i 21994368

Generated by: LCOV version 1.11