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 19378-5335519) Lines: 1461 1601 91.3 %
Date: 2016-08-31 06:11:49 Functions: 126 135 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 14959
F2xV_to_ZXV_inplace 114743
F2x_Berlekamp_i 125663
F2x_Berlekamp_ker 17543
F2x_ddf_simple 14812
F2x_degfact 0
F2x_degfact_2 854
F2x_edf_simple 6671
F2x_factcantor 7504
F2x_factcantor_i 14182
F2x_factor 14
F2x_factor_2 73059
F2x_factor_Cantor 9583
F2x_factor_Shoup 13048
F2x_factor_deg2 73920
F2x_factor_squarefree 11207
F2x_is_irred 140
F2x_is_irred_2 7
F2x_isirred_Cantor 140
F2x_quad_factortype 28378
F2x_simplefact_Cantor 1624
F2x_simplefact_Shoup 1666
F2x_split_Berlekamp 52954
F2xq_frobtrace 4438
FE_concat 384383
FE_setlg 379781
Fl_disc_bc 17331508
Fl_nonsquare 6
FlxV_to_ZXV_inplace 642250
Flx_Berlekamp_i 674569
Flx_Berlekamp_ker 249158
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 680784
Flx_cubic_root 226206
Flx_cut_out_roots 14
Flx_ddf 479594
Flx_degfact 453921
Flx_degfact_2 106946
Flx_edf 19007
Flx_edf_rec 33600
Flx_edf_simple 45794
Flx_factcantor 7252
Flx_factcantor_i 488718
Flx_factor 60984
Flx_factor_2 340016
Flx_factor_Cantor 28658
Flx_factor_Shoup 31696
Flx_factor_deg2 446962
Flx_factor_squarefree 373687
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 51968
Flx_nbfact_Frobenius 51968
Flx_nbfact_by_degree 50082
Flx_nbroots 2574772
Flx_oneroot 1383236
Flx_oneroot_i 1418440
Flx_oneroot_mod_2 14
Flx_oneroot_split 27658
Flx_otherroot 11466048
Flx_quad_factortype 104734
Flx_quad_root 17225881
Flx_root_mod_2 6314
Flx_roots 20550588
Flx_roots_i 20610932
Flx_roots_naive 14
Flx_simplefact_Cantor 344511
Flx_simplefact_Shoup 345407
Flx_split_Berlekamp 331413
FpX_Berlekamp_i 755368
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 755298
FpX_factor_2 74
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 217
FpX_factor_deg2 95
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 98581
FpX_oneroot 11221
FpX_oneroot_i 3649
FpX_otherroot 2871
FpX_quad_factortype 21
FpX_quad_root 6482
FpX_roots 59549
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 692
FpX_split_part 139846
Mod0pX 14
ZX_factmod_init 826082
all_roots_mod_p 42
cmpGuGu 2179659
deg1_Flx 133082
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 59633
simplefactmod 28
split_Flx_cut_out_roots 4549678
split_add 4746738
split_add_done 321307
split_done 302393
split_init 4552562
split_moveto_done 4746670
split_nonsquares 19
split_squares 19
split_todo 277775
trivial_fact 798
zero_fact_intmod 14

Generated by: LCOV version 1.11