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 19207-2ed2f69) Lines: 1471 1614 91.1 %
Date: 2016-07-25 07:10:32 Functions: 123 132 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 14945
F2xV_to_ZXV_inplace 119936
F2x_Berlekamp_i 130856
F2x_Berlekamp_ker 22554
F2x_ddf_simple 14791
F2x_degfact 0
F2x_degfact_2 854
F2x_edf_simple 6671
F2x_factcantor 7504
F2x_factcantor_i 14161
F2x_factor 14
F2x_factor_2 73262
F2x_factor_Cantor 9569
F2x_factor_Shoup 13034
F2x_factor_deg2 74123
F2x_factor_squarefree 11186
F2x_is_irred 140
F2x_is_irred_2 7
F2x_isirred_Cantor 140
F2x_quad_factortype 28651
F2x_simplefact_Cantor 1617
F2x_simplefact_Shoup 1659
F2x_split_Berlekamp 58070
F2xq_frobtrace 4424
Fl_disc_bc 17286352
Fl_nonsquare 6
FlxV_to_ZXV_inplace 601707
Flx_Berlekamp_i 633669
Flx_Berlekamp_ker 207101
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 602467
Flx_cubic_root 226208
Flx_cut_out_roots 14
Flx_ddf 423778
Flx_degfact 363826
Flx_degfact_2 77959
Flx_edf 18851
Flx_edf_rec 33299
Flx_edf_simple 45682
Flx_factcantor 7252
Flx_factcantor_i 398392
Flx_factor 61089
Flx_factor_2 340684
Flx_factor_Cantor 28441
Flx_factor_Shoup 31479
Flx_factor_deg2 418643
Flx_factor_squarefree 311851
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 51919
Flx_nbfact_Frobenius 51919
Flx_nbfact_by_degree 55640
Flx_nbroots 2548963
Flx_oneroot 1383292
Flx_oneroot_i 1418307
Flx_oneroot_mod_2 14
Flx_oneroot_split 27666
Flx_otherroot 11461068
Flx_quad_factortype 75747
Flx_quad_root 17217146
Flx_root_mod_2 6377
Flx_roots 20548922
Flx_roots_i 20601399
Flx_roots_naive 14
Flx_simplefact_Cantor 283410
Flx_simplefact_Shoup 284299
Flx_split_Berlekamp 289943
FpX_Berlekamp_i 719325
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 719255
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 98539
FpX_oneroot 11004
FpX_oneroot_i 3649
FpX_otherroot 2871
FpX_quad_factortype 21
FpX_quad_root 6482
FpX_roots 60802
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 692
FpX_split_part 140469
Mod0pX 14
ZX_factmod_init 791075
all_roots_mod_p 35
cmpGuGu 1939761
deg1_Flx 119546
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 60886
simplefactmod 28
split_Flx_cut_out_roots 4549543
split_add 4746814
split_add_done 321323
split_done 302416
split_init 4552720
split_moveto_done 4746791
split_nonsquares 19
split_squares 19
split_todo 277756
trivial_fact 763
zero_fact_intmod 14

Generated by: LCOV version 1.11