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 20783-cec4728) Lines: 1418 1600 88.6 %
Date: 2017-06-28 05:59:20 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 17227
F2xV_to_ZXV_inplace 141064
F2x_Berlekamp_i 153153
F2x_Berlekamp_ker 19476
F2x_ddf_simple 25853
F2x_degfact 0
F2x_degfact_2 7259
F2x_edf_simple 12371
F2x_factcantor 14994
F2x_factcantor_i 29386
F2x_factor 14
F2x_factor_2 98707
F2x_factor_Cantor 17296
F2x_factor_Shoup 23907
F2x_factor_deg2 105973
F2x_factor_squarefree 76327
F2x_is_irred 238
F2x_is_irred_2 7
F2x_isirred_Cantor 238
F2x_quad_factortype 57575
F2x_simplefact_Cantor 1736
F2x_simplefact_Shoup 1778
F2x_split_Berlekamp 52948
F2xq_frobtrace 8056
FE_concat 398585
FE_setlg 419899
Fl_disc_bc 18263265
Fl_nonsquare 6
FlxV_to_ZXV_inplace 718795
Flx_Berlekamp_i 756266
Flx_Berlekamp_ker 282296
Flx_Xn1 6
Flx_Xnm1 13
Flx_addmul_inplace 1259717
Flx_cubic_root 227225
Flx_cut_out_roots 14
Flx_ddf 651392
Flx_degfact 1118208
Flx_degfact_2 758373
Flx_edf 18773
Flx_edf_rec 32616
Flx_edf_simple 45415
Flx_factcantor 7286
Flx_factcantor_i 1154609
Flx_factor 68413
Flx_factor_2 383612
Flx_factor_Cantor 28691
Flx_factor_Shoup 31801
Flx_factor_deg2 1141985
Flx_factor_squarefree 742612
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 75243
Flx_nbfact_Frobenius 75243
Flx_nbfact_by_degree 192071
Flx_nbroots 2358592
Flx_oneroot 1407149
Flx_oneroot_i 1442195
Flx_oneroot_mod_2 35
Flx_oneroot_split 27907
Flx_otherroot 11660339
Flx_quad_factortype 741230
Flx_quad_root 17523200
Flx_root_mod_2 9002
Flx_roots 20756852
Flx_roots_i 20817767
Flx_roots_naive 14
Flx_simplefact_Cantor 350854
Flx_simplefact_Shoup 351836
Flx_split_Berlekamp 372329
FpX_Berlekamp_i 857540
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 857470
FpX_factor_2 90
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 272
FpX_factor_deg2 111
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 99120
FpX_oneroot 10843
FpX_oneroot_i 3649
FpX_oneroot_split 0
FpX_otherroot 2867
FpX_quad_factortype 21
FpX_quad_root 6500
FpX_roots 69648
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 59
FpX_split_part 141569
Mod0pX 14
ZX_factmod_init 937975
all_roots_mod_p 42
cmpGuGu 2882397
deg1_Flx 155210
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 69732
simplefactmod 28
split_Flx_cut_out_roots 4585541
split_add 4790384
split_add_done 330934
split_done 311979
split_init 4588350
split_moveto_done 4790579
split_nonsquares 12
split_squares 12
split_todo 287814
trivial_fact 826
zero_fact_intmod 14

Generated by: LCOV version 1.11