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 16624-25b9976) Lines: 1591 1712 92.9 %
Date: 2014-06-24 Functions: 142 152 93.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 861 1132 76.1 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 396
F2xV_to_ZXV_inplace 53268
F2x_Berlekamp_i 53263
F2x_Berlekamp_ker 14710
F2x_degfact_2 420
F2x_factcantor 5248
F2x_factcantor_i 6886
F2x_factor 0
F2x_factor_2 21515
F2x_factor_deg2 21940
F2x_is_irred 100
F2x_is_irred_2 5
F2x_quad_factortype 17251
F2x_split 14073
F2x_split_Berlekamp 30766
F2xqX_quad_roots 1234
Fl_disc_bc 164218
Fl_nonsquare 4
Flm_Flx_mul 153637
FlxV_to_ZXV_inplace 301134
Flx_Berlekamp_i 303346
Flx_Berlekamp_ker 147398
Flx_Xn1 9
Flx_Xnm1 14
Flx_addmul_inplace 371609
Flx_cubic_root 10
Flx_cut_out_roots 10
Flx_degfact 109477
Flx_degfact_2 20380
Flx_factcantor 5156
Flx_factcantor_i 123900
Flx_factor 12289
Flx_factor_2 141043
Flx_factor_deg2 161423
Flx_is_irred 415
Flx_is_irred_2 0
Flx_nbfact 25092
Flx_nbfact_by_degree 54932
Flx_nbroots 1570688
Flx_oneroot 450
Flx_oneroot_i 988
Flx_oneroot_mod_2 10
Flx_otherroot 107983
Flx_quad_factortype 20370
Flx_quad_root 143848
Flx_root_mod_2 4092
Flx_roots 0
Flx_roots_i 35139
Flx_roots_naive 10
Flx_split 74434
Flx_split_Berlekamp 164495
Flx_try_pow 39402
FlxqXQ_halfFrobenius 1881
FlxqX_Berlekamp_ker 48
FlxqX_Frobenius 755
FlxqX_nbroots 15
FlxqX_split_part 25
FpXQXQ_halfFrobenius 1840
FpXQX_Berlekamp_ker 50
FpXQX_Frobenius 87
FpXQX_nbfact 0
FpXQX_nbroots 15
FpXQX_split_part 5
FpX_Berlekamp_i 353224
FpX_Berlekamp_ker 58
FpX_degfact 0
FpX_degfact_2 10
FpX_factcantor 0
FpX_factcantor_i 65
FpX_factor 353179
FpX_factor_2 42
FpX_factor_deg2 57
FpX_factorff 0
FpX_factorff_i 180
FpX_is_irred 10
FpX_is_irred_2 5
FpX_is_totally_split 0
FpX_nbfact 20
FpX_nbroots 12647
FpX_oneroot 2070
FpX_oneroot_i 1522
FpX_otherroot 1356
FpX_quad_factortype 15
FpX_quad_root 2885
FpX_roots 40520
FpX_roots_i 1299
FpX_rootsff 0
FpX_rootsff_i 419
FpX_split 310
FpX_split_Berlekamp 138
FpX_split_part 41257
FqXC_roots_from_deg1 219
FqX_Frobenius_eval 1463
FqX_Frobenius_powers 562
FqX_deriv 10715
FqX_factor 455
FqX_factor_i 290
FqX_frob_deflate 45
FqX_is_squarefree 330
FqX_nbfact 0
FqX_nbroots 830
FqX_quad_roots 1449
FqX_rand 1865
FqX_roots 3745
FqX_roots_i 2145
FqX_split 2820
FqX_split_Berlekamp 50
FqX_split_Trager 25
FqX_split_all 40
FqX_split_by_degree 200
FqX_split_deg1 377
FqX_split_equal 284
FqX_split_roots 239
FqX_sqf_split 10
Mod0pX 10
ZX_factmod_init 395779
add 524
all_roots_mod_p 25
cmpGuGu 999425
deg1_Flx 80378
factcantor 40
factcantor0 65
factmod 55
factmod_aux 120
factmod_init 175
factorff 205
factormod0 65
ffcheck 205
isabsolutepol 2425
polrootsff 50
prime_fact 25
rootmod 45
rootmod0 50
rootmod2 10
rootmod_aux 40575
simplefactmod 25
split_Flx_cut_out_roots 12235
split_add 7929
split_add_done 17629
split_done 5127
split_init 13534
split_moveto_done 7929
split_nonsquares 13
split_squares 13
split_todo 6164
to_Fq 6830
to_FqC 25
to_Fq_fact 180
to_Fq_pol 3125
trivial_fact 154900
try_pow 202
zero_fact_intmod 10

Generated by: LCOV version 1.9