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 20277-2bd9113) Lines: 1418 1600 88.6 %
Date: 2017-02-19 05:49:50 Functions: 126 137 92.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 16072
F2xV_to_ZXV_inplace 113231
F2x_Berlekamp_i 125229
F2x_Berlekamp_ker 17194
F2x_ddf_simple 26005
F2x_degfact 0
F2x_degfact_2 994
F2x_edf_simple 12560
F2x_factcantor 15238
F2x_factcantor_i 22294
F2x_factor 14
F2x_factor_2 74004
F2x_factor_Cantor 17302
F2x_factor_Shoup 24065
F2x_factor_deg2 75005
F2x_factor_squarefree 72279
F2x_is_irred 238
F2x_is_irred_2 7
F2x_isirred_Cantor 238
F2x_quad_factortype 26802
F2x_simplefact_Cantor 1729
F2x_simplefact_Shoup 1771
F2x_split_Berlekamp 49790
F2xq_frobtrace 8570
FE_concat 397635
FE_setlg 386001
Fl_disc_bc 17391878
Fl_nonsquare 6
FlxV_to_ZXV_inplace 654858
Flx_Berlekamp_i 687751
Flx_Berlekamp_ker 254818
Flx_Xn1 6
Flx_Xnm1 13
Flx_addmul_inplace 754795
Flx_cubic_root 225784
Flx_cut_out_roots 14
Flx_ddf 501023
Flx_degfact 486136
Flx_degfact_2 132566
Flx_edf 18541
Flx_edf_rec 32468
Flx_edf_simple 43268
Flx_factcantor 7314
Flx_factcantor_i 520164
Flx_factor 61175
Flx_factor_2 344687
Flx_factor_Cantor 27735
Flx_factor_Shoup 30854
Flx_factor_deg2 477253
Flx_factor_squarefree 711811
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 56665
Flx_nbfact_Frobenius 56665
Flx_nbfact_by_degree 61220
Flx_nbroots 2390363
Flx_oneroot 1384425
Flx_oneroot_i 1419569
Flx_oneroot_mod_2 14
Flx_oneroot_split 27583
Flx_otherroot 11494984
Flx_quad_factortype 115423
Flx_quad_root 17278376
Flx_root_mod_2 6923
Flx_roots 20576973
Flx_roots_i 20634100
Flx_roots_naive 14
Flx_simplefact_Cantor 350861
Flx_simplefact_Shoup 351843
Flx_split_Berlekamp 339497
FpX_Berlekamp_i 766029
FpX_Berlekamp_ker 53
FpX_ddf 4102
FpX_degfact 0
FpX_degfact_2 14
FpX_edf 14
FpX_edf_rec 210
FpX_edf_simple 0
FpX_factcantor 0
FpX_factcantor_i 35
FpX_factor 765959
FpX_factor_2 89
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 273
FpX_factor_deg2 110
FpX_factor_squarefree 728
FpX_is_irred 14
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_isirred_Cantor 0
FpX_nbfact 28
FpX_nbfact_Frobenius 4088
FpX_nbroots 98588
FpX_oneroot 11221
FpX_oneroot_i 3649
FpX_oneroot_split 0
FpX_otherroot 2867
FpX_quad_factortype 21
FpX_quad_root 6500
FpX_roots 66434
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 58
FpX_split_part 140232
Mod0pX 14
ZX_factmod_init 843628
all_roots_mod_p 42
cmpGuGu 2357636
deg1_Flx 146080
factcantor 70
factcantor0 98
factcantor_i 98
factmod 84
factmod_aux 182
factmod_init 266
factormod0 105
good_root_of_unity 0
prime_fact 70
rootmod 70
rootmod0 84
rootmod2 14
rootmod_aux 66518
simplefactmod 28
split_Flx_cut_out_roots 4549955
split_add 4747844
split_add_done 322280
split_done 303352
split_init 4553073
split_moveto_done 4748116
split_nonsquares 12
split_squares 12
split_todo 279293
trivial_fact 812
zero_fact_intmod 14

Generated by: LCOV version 1.11