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 21196-f12677d) Lines: 1497 1611 92.9 %
Date: 2017-10-22 06:23:24 Functions: 133 140 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 18375
F2xV_to_ZXV_inplace 141113
F2x_Berlekamp_i 153062
F2x_Berlekamp_ker 19441
F2x_ddf_simple 26446
F2x_degfact 0
F2x_degfact_2 7252
F2x_edf_simple 12867
F2x_factcantor 15232
F2x_factcantor_i 30905
F2x_factor 14
F2x_factor_2 99722
F2x_factor_Cantor 17801
F2x_factor_Shoup 24502
F2x_factor_deg2 106981
F2x_factor_squarefree 76748
F2x_is_irred 238
F2x_is_irred_2 7
F2x_isirred_Cantor 238
F2x_quad_factortype 58716
F2x_simplefact_Cantor 1736
F2x_simplefact_Shoup 1778
F2x_split_Berlekamp 52878
F2xq_frobtrace 8327
FE_concat 400467
FE_setlg 418919
Fl_disc_bc 19022008
Fl_nonsquare 6
FlxV_to_ZXV_inplace 716559
Flx_Berlekamp_i 782114
Flx_Berlekamp_ker 281569
Flx_Xn1 6
Flx_Xnm1 13
Flx_addmul_inplace 1245945
Flx_cubic_root 254901
Flx_cut_out_roots 14
Flx_ddf 658655
Flx_degfact 1118187
Flx_degfact_2 758359
Flx_edf 18834
Flx_edf_rec 32650
Flx_edf_simple 45729
Flx_factcantor 7615
Flx_factcantor_i 1159607
Flx_factor 101187
Flx_factor_2 412941
Flx_factor_Cantor 29774
Flx_factor_Shoup 32890
Flx_factor_deg2 1171300
Flx_factor_squarefree 743121
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 81137
Flx_nbfact_Frobenius 81137
Flx_nbfact_by_degree 192071
Flx_nbroots 2386877
Flx_oneroot 1556794
Flx_oneroot_i 1594323
Flx_oneroot_mod_2 35
Flx_oneroot_split 30364
Flx_otherroot 12149425
Flx_quad_factortype 741216
Flx_quad_root 18283081
Flx_root_mod_2 8750
Flx_roots 21795274
Flx_roots_i 21853430
Flx_roots_naive 14
Flx_simplefact_Cantor 351134
Flx_simplefact_Shoup 352116
Flx_split_Berlekamp 371066
FpX_Berlekamp_i 855472
FpX_Berlekamp_ker 130
FpX_ddf 4116
FpX_degfact 0
FpX_degfact_2 14
FpX_edf 14
FpX_edf_rec 210
FpX_edf_simple 0
FpX_factcantor 0
FpX_factcantor_i 49
FpX_factor 855367
FpX_factor_2 132
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 412
FpX_factor_deg2 153
FpX_factor_squarefree 896
FpX_is_irred 14
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_isirred_Cantor 0
FpX_ispower 168
FpX_nbfact 28
FpX_nbfact_Frobenius 4088
FpX_nbroots 99120
FpX_oneroot 11389
FpX_oneroot_i 4195
FpX_oneroot_split 665
FpX_otherroot 2867
FpX_quad_factortype 21
FpX_quad_root 6766
FpX_roots 70428
FpX_roots_i 2797
FpX_simplefact_Cantor 14
FpX_simplefact_Shoup 14
FpX_split_Berlekamp 136
FpX_split_part 142913
Mod0pX 14
ZX_factmod_init 937198
all_roots_mod_p 42
cmpGuGu 2871681
ddf_to_nbfact 85407
ddf_to_simplefact 352130
deg1_Flx 151560
factcantor 70
factcantor0 112
factcantor_i 112
factmod 154
factmod_aux 266
factmod_init 350
factormod0 126
good_root_of_unity 238
prime_fact 70
rootmod 70
rootmod0 84
rootmod2 14
rootmod_aux 70512
simplefactmod 42
split_Flx_cut_out_roots 4993088
split_add 5222087
split_add_done 370618
split_done 351641
split_init 4996179
split_moveto_done 5222244
split_nonsquares 12
split_squares 12
split_todo 318648
trivial_fact 952
zero_fact_intmod 14

Generated by: LCOV version 1.11