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-bordeaux1.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 17953-c39f2e6) Lines: 1627 1727 94.2 %
Date: 2015-08-30 Functions: 144 153 94.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 899 1145 78.5 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 819
F2xV_to_ZXV_inplace 77726
F2x_Berlekamp_i 77719
F2x_Berlekamp_ker 20923
F2x_degfact_2 623
F2x_factcantor 7504
F2x_factcantor_i 10101
F2x_factor 0
F2x_factor_2 32291
F2x_factor_deg2 32921
F2x_is_irred 140
F2x_is_irred_2 7
F2x_quad_factortype 25760
F2x_split 20237
F2x_split_Berlekamp 44028
F2xqX_quad_roots 1673
Fl_disc_bc 5926870
Fl_nonsquare 6
Flm_Flx_mul 261713
FlxV_to_ZXV_inplace 398121
Flx_Berlekamp_i 412331
Flx_Berlekamp_ker 175343
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 505709
Flx_cubic_root 54067
Flx_cut_out_roots 14
Flx_degfact 208146
Flx_degfact_2 63840
Flx_factcantor 7280
Flx_factcantor_i 236356
Flx_factor 36442
Flx_factor_2 214280
Flx_factor_deg2 278120
Flx_is_irred 581
Flx_is_irred_2 0
Flx_nbfact 48475
Flx_nbfact_by_degree 97416
Flx_nbroots 7887184
Flx_oneroot 678777
Flx_oneroot_i 696553
Flx_oneroot_mod_2 14
Flx_oneroot_split 10471
Flx_otherroot 5235803
Flx_quad_factortype 63826
Flx_quad_root 5863044
Flx_root_mod_2 6027
Flx_roots 5607340
Flx_roots_i 5658084
Flx_roots_naive 14
Flx_split 137013
Flx_split_Berlekamp 201773
Flx_try_pow 73373
FlxqXQ_halfFrobenius 11603
FlxqX_Berlekamp_ker 48
FlxqX_Frobenius 14905
FlxqX_nbroots 14
FlxqX_split_part 307
FpXQXQ_halfFrobenius 11451
FpXQX_Berlekamp_ker 49
FpXQX_Frobenius 131
FpXQX_nbfact 0
FpXQX_nbroots 301
FpXQX_split_part 8
FpX_Berlekamp_i 474054
FpX_Berlekamp_ker 83
FpX_degfact 0
FpX_degfact_2 14
FpX_factcantor 0
FpX_factcantor_i 77
FpX_factor 473991
FpX_factor_2 67
FpX_factor_deg2 88
FpX_factorff 0
FpX_factorff_i 413
FpX_is_irred 14
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_nbfact 28
FpX_nbroots 18382
FpX_oneroot 10934
FpX_oneroot_i 3615
FpX_otherroot 3138
FpX_quad_factortype 21
FpX_quad_root 6708
FpX_roots 59822
FpX_roots_i 3058
FpX_rootsff 0
FpX_rootsff_i 1134
FpX_split 434
FpX_split_Berlekamp 594
FpX_split_part 59668
FqXC_roots_from_deg1 9142
FqX_Frobenius_eval 16821
FqX_Frobenius_powers 14245
FqX_deriv 34153
FqX_factor 1302
FqX_factor_i 616
FqX_frob_deflate 56
FqX_is_squarefree 7616
FqX_nbfact 0
FqX_nbroots 1771
FqX_quad_roots 2149
FqX_rand 11403
FqX_roots 20349
FqX_roots_i 16807
FqX_split 23457
FqX_split_Berlekamp 49
FqX_split_Trager 28
FqX_split_all 119
FqX_split_by_degree 553
FqX_split_deg1 13755
FqX_split_equal 9261
FqX_split_roots 9128
FqX_sqf_split 14
Mod0pX 14
ZX_factmod_init 544761
add 9835
all_roots_mod_p 35
cmpGuGu 1441956
deg1_Flx 97874
factcantor 49
factcantor0 77
factmod 77
factmod_aux 154
factmod_init 224
factorff 280
factormod0 98
ffcheck 280
isabsolutepol 17409
polrootsff 70
prime_fact 63
rootmod 56
rootmod0 70
rootmod2 14
rootmod_aux 59892
simplefactmod 28
split_Flx_cut_out_roots 618299
split_add 679250
split_add_done 100853
split_done 82006
split_init 621357
split_moveto_done 679250
split_nonsquares 19
split_squares 19
split_todo 75058
to_Fq 9520
to_FqC 35
to_Fq_fact 245
to_Fq_pol 4354
trivial_fact 700
try_pow 287
zero_fact_intmod 14

Generated by: LCOV version 1.9