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.8.0 lcov report (development 19081-e84bc4a) Lines: 1474 1614 91.3 %
Date: 2016-07-01 Functions: 123 132 93.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 817 1092 74.8 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 14945
F2xV_to_ZXV_inplace 78573
F2x_Berlekamp_i 89493
F2x_Berlekamp_ker 20853
F2x_ddf_simple 14791
F2x_degfact 0
F2x_degfact_2 861
F2x_edf_simple 6671
F2x_factcantor 7504
F2x_factcantor_i 14168
F2x_factor 14
F2x_factor_2 46102
F2x_factor_Cantor 9569
F2x_factor_Shoup 13034
F2x_factor_deg2 46970
F2x_factor_squarefree 11186
F2x_is_irred 140
F2x_is_irred_2 7
F2x_isirred_Cantor 140
F2x_quad_factortype 27846
F2x_simplefact_Cantor 1617
F2x_simplefact_Shoup 1659
F2x_split_Berlekamp 43867
F2xq_frobtrace 4424
Fl_disc_bc 5979876
Fl_nonsquare 6
FlxV_to_ZXV_inplace 464178
Flx_Berlekamp_i 496140
Flx_Berlekamp_ker 205519
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 600696
Flx_cubic_root 53914
Flx_cut_out_roots 14
Flx_ddf 423925
Flx_degfact 363574
Flx_degfact_2 77700
Flx_edf 18851
Flx_edf_rec 33299
Flx_edf_simple 45682
Flx_factcantor 7252
Flx_factcantor_i 398140
Flx_factor 61089
Flx_factor_2 258014
Flx_factor_Cantor 28441
Flx_factor_Shoup 31479
Flx_factor_deg2 335714
Flx_factor_squarefree 311851
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 51870
Flx_nbfact_Frobenius 51870
Flx_nbfact_by_degree 55836
Flx_nbroots 8120608
Flx_oneroot 676500
Flx_oneroot_i 694296
Flx_oneroot_mod_2 14
Flx_oneroot_split 10453
Flx_otherroot 5252077
Flx_quad_factortype 75488
Flx_quad_root 5904206
Flx_root_mod_2 6363
Flx_roots 5597173
Flx_roots_i 5648400
Flx_roots_naive 14
Flx_simplefact_Cantor 283410
Flx_simplefact_Shoup 284299
Flx_split_Berlekamp 232774
FpX_Berlekamp_i 540433
FpX_Berlekamp_ker 55
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 540363
FpX_factor_2 74
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 7
FpX_factor_deg2 95
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 18459
FpX_oneroot 11004
FpX_oneroot_i 3649
FpX_otherroot 2871
FpX_quad_factortype 21
FpX_quad_root 6482
FpX_roots 60788
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 692
FpX_split_part 60389
Mod0pX 14
ZX_factmod_init 612169
all_roots_mod_p 35
cmpGuGu 1816302
deg1_Flx 119098
factcantor 70
factcantor0 98
factcantor_i 98
factmod 84
factmod_aux 182
factmod_init 266
factormod0 105
prime_fact 70
rootmod 70
rootmod0 84
rootmod2 14
rootmod_aux 60872
simplefactmod 28
split_Flx_cut_out_roots 611247
split_add 671903
split_add_done 99927
split_done 81032
split_init 614062
split_moveto_done 671907
split_nonsquares 19
split_squares 19
split_todo 75057
trivial_fact 763
zero_fact_intmod 14

Generated by: LCOV version 1.9