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 21343-6216058) Lines: 1521 1637 92.9 %
Date: 2017-11-19 06:21:17 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
prime_fact 70
rootmod 70
rootmod0 84
factcantor0 112
factcantor_i 112
Flx_ispower 126
factormod0 126
FpX_Berlekamp_ker 129
FpX_factor_2 132
FpX_split_Berlekamp 135
FpX_factor_deg2 153
factmod 154
FpX_ispower 168
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 404
Flx_is_irred 581
Flx_isirred_Cantor 581
FpX_oneroot_split 665
FpX_factor_squarefree 728
trivial_fact 1001
F2x_simplefact_Cantor 1736
F2x_simplefact_Shoup 1778
FpX_roots_i 2797
FpX_otherroot 2865
FpX_nbfact_Frobenius 4088
FpX_ddf 4116
FpX_oneroot_i 4195
FpX_quad_root 6764
F2x_degfact_2 7021
Flx_factcantor 7620
F2xq_frobtrace 8303
Flx_root_mod_2 8764
FpX_oneroot 11424
F2x_edf_simple 12805
F2x_factcantor 15166
F2x_factor_Cantor 17735
F2xV_to_FlxV_inplace 18389
Flx_edf 18872
F2x_Berlekamp_ker 19455
F2x_factor_Shoup 24402
F2x_ddf_simple 26348
Flx_factor_Cantor 29808
Flx_oneroot_split 30371
F2x_factcantor_i 30622
Flx_edf_rec 32696
Flx_factor_Shoup 32924
Flx_edf_simple 45684
F2x_split_Berlekamp 52892
F2x_quad_factortype 58632
FpX_roots 70444
rootmod_aux 70528
F2x_factor_squarefree 76696
Flx_nbfact 81060
Flx_nbfact_Frobenius 81060
ddf_to_nbfact 85330
FpX_nbroots 99120
F2x_factor_2 99939
Flx_factor 101418
F2x_factor_deg2 106967
F2xV_to_ZXV_inplace 141330
FpX_split_part 142913
deg1_Flx 151622
F2x_Berlekamp_i 153279
Flx_nbfact_by_degree 186352
Flx_cubic_root 254900
Flx_Berlekamp_ker 281199
split_todo 319413
Flx_simplefact_Cantor 351022
Flx_simplefact_Shoup 352004
ddf_to_simplefact 352018
split_done 352212
Flx_split_Berlekamp 370754
split_add_done 371190
FE_concat 400322
Flx_factor_2 409461
FE_setlg 418674
Flx_ddf 652781
FlxV_to_ZXV_inplace 712633
Flx_quad_factortype 719516
Flx_degfact_2 736659
Flx_factor_squarefree 742792
Flx_Berlekamp_i 778370
FpX_factor 851657
FpX_Berlekamp_i 851762
ZX_factmod_init 933539
Flx_degfact 1096144
Flx_factcantor_i 1137618
Flx_factor_deg2 1146120
Flx_addmul_inplace 1246648
Flx_oneroot 1556213
Flx_oneroot_i 1593775
Flx_nbroots 2386716
cmpGuGu 2869804
split_Flx_cut_out_roots 4993208
split_init 4996357
split_add 5223208
split_moveto_done 5223306
Flx_otherroot 12147417
Flx_quad_root 18276799
Fl_disc_bc 18993577
Flx_roots 21791219
Flx_roots_i 21850895

Generated by: LCOV version 1.11