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 19628-9774e23) Lines: 1418 1564 90.7 %
Date: 2016-10-01 05:54:29 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 15924
F2xV_to_ZXV_inplace 115906
F2x_Berlekamp_i 127904
F2x_Berlekamp_ker 17789
F2x_ddf_simple 14797
F2x_degfact 0
F2x_degfact_2 868
F2x_edf_simple 6566
F2x_factcantor 7504
F2x_factcantor_i 14111
F2x_factor 14
F2x_factor_2 74417
F2x_factor_Cantor 9533
F2x_factor_Shoup 13005
F2x_factor_deg2 75292
F2x_factor_squarefree 66583
F2x_is_irred 140
F2x_is_irred_2 7
F2x_isirred_Cantor 140
F2x_quad_factortype 28665
F2x_simplefact_Cantor 1652
F2x_simplefact_Shoup 1694
F2x_split_Berlekamp 53711
F2xq_frobtrace 4368
FE_concat 410068
FE_setlg 383531
Fl_disc_bc 17347924
Fl_nonsquare 6
FlxV_to_ZXV_inplace 644765
Flx_Berlekamp_i 678360
Flx_Berlekamp_ker 249469
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 692682
Flx_cubic_root 226383
Flx_cut_out_roots 14
Flx_ddf 510764
Flx_degfact 481817
Flx_degfact_2 110376
Flx_edf 19944
Flx_edf_rec 36044
Flx_edf_simple 48036
Flx_factcantor 7252
Flx_factcantor_i 517784
Flx_factor 63500
Flx_factor_2 339799
Flx_factor_Cantor 29941
Flx_factor_Shoup 33007
Flx_factor_deg2 450175
Flx_factor_squarefree 727469
Flx_is_irred 581
Flx_is_irred_2 0
Flx_isirred_Cantor 581
Flx_nbfact 53081
Flx_nbfact_Frobenius 53081
Flx_nbfact_by_degree 54374
Flx_nbroots 2574820
Flx_oneroot 1383505
Flx_oneroot_i 1421515
Flx_oneroot_mod_2 14
Flx_oneroot_split 27661
Flx_otherroot 11477537
Flx_quad_factortype 108164
Flx_quad_root 17242823
Flx_root_mod_2 7154
Flx_roots 20556924
Flx_roots_i 20615060
Flx_roots_naive 14
Flx_simplefact_Cantor 368935
Flx_simplefact_Shoup 369861
Flx_split_Berlekamp 335041
FpX_Berlekamp_i 758991
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 758921
FpX_factor_2 89
FpX_factor_Cantor 7
FpX_factor_Shoup 14
FpX_factor_Yun 275
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 98581
FpX_oneroot 14014
FpX_oneroot_i 3649
FpX_otherroot 2869
FpX_quad_factortype 21
FpX_quad_root 6502
FpX_roots 67512
FpX_roots_i 2797
FpX_simplefact_Cantor 0
FpX_simplefact_Shoup 0
FpX_split_Berlekamp 62
FpX_split_part 139630
Mod0pX 14
ZX_factmod_init 840461
all_roots_mod_p 42
cmpGuGu 2320894
deg1_Flx 141112
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 67596
simplefactmod 28
split_Flx_cut_out_roots 4549378
split_add 4746799
split_add_done 321329
split_done 302415
split_init 4552640
split_moveto_done 4746740
split_nonsquares 19
split_squares 19
split_todo 277832
trivial_fact 819
zero_fact_intmod 14

Generated by: LCOV version 1.11