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 16912-212c0f0) Lines: 1590 1709 93.0 %
Date: 2014-10-20 Functions: 142 152 93.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 865 1136 76.1 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 497
F2xV_to_ZXV_inplace 74023
F2x_Berlekamp_i 74016
F2x_Berlekamp_ker 20153
F2x_degfact_2 532
F2x_factcantor 7280
F2x_factcantor_i 9436
F2x_factor 0
F2x_factor_2 30058
F2x_factor_deg2 30597
F2x_is_irred 140
F2x_is_irred_2 7
F2x_quad_factortype 24218
F2x_split 19572
F2x_split_Berlekamp 42699
F2xqX_quad_roots 1624
Fl_disc_bc 210884
Fl_nonsquare 6
Flm_Flx_mul 210287
FlxV_to_ZXV_inplace 362324
Flx_Berlekamp_i 365152
Flx_Berlekamp_ker 144662
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 397976
Flx_cubic_root 14
Flx_cut_out_roots 14
Flx_degfact 143129
Flx_degfact_2 22547
Flx_factcantor 7224
Flx_factcantor_i 163023
Flx_factor 16583
Flx_factor_2 199905
Flx_factor_deg2 222452
Flx_is_irred 581
Flx_is_irred_2 0
Flx_nbfact 34041
Flx_nbfact_by_degree 74249
Flx_nbroots 2206018
Flx_oneroot 630
Flx_oneroot_i 1430
Flx_oneroot_mod_2 14
Flx_otherroot 138220
Flx_quad_factortype 22533
Flx_quad_root 188351
Flx_root_mod_2 5726
Flx_roots 0
Flx_roots_i 49039
Flx_roots_naive 14
Flx_split 103397
Flx_split_Berlekamp 168303
Flx_try_pow 54851
FlxqXQ_halfFrobenius 2789
FlxqX_Berlekamp_ker 68
FlxqX_Frobenius 1163
FlxqX_nbroots 21
FlxqX_split_part 48
FpXQXQ_halfFrobenius 2638
FpXQX_Berlekamp_ker 70
FpXQX_Frobenius 132
FpXQX_nbfact 0
FpXQX_nbroots 35
FpXQX_split_part 8
FpX_Berlekamp_i 434753
FpX_Berlekamp_ker 77
FpX_degfact 0
FpX_degfact_2 14
FpX_factcantor 0
FpX_factcantor_i 77
FpX_factor 434697
FpX_factor_2 56
FpX_factor_deg2 77
FpX_factorff 0
FpX_factorff_i 245
FpX_is_irred 14
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_nbfact 28
FpX_nbroots 17707
FpX_oneroot 3164
FpX_oneroot_i 2350
FpX_otherroot 1991
FpX_quad_factortype 21
FpX_quad_root 4297
FpX_roots 56683
FpX_roots_i 1925
FpX_rootsff 0
FpX_rootsff_i 581
FpX_split 434
FpX_split_Berlekamp 187
FpX_split_part 57646
FqXC_roots_from_deg1 322
FqX_Frobenius_eval 1960
FqX_Frobenius_powers 742
FqX_deriv 18389
FqX_factor 609
FqX_factor_i 385
FqX_frob_deflate 49
FqX_is_squarefree 462
FqX_nbfact 0
FqX_nbroots 1218
FqX_quad_roots 2058
FqX_rand 2614
FqX_roots 5404
FqX_roots_i 3024
FqX_split 3927
FqX_split_Berlekamp 70
FqX_split_Trager 35
FqX_split_all 56
FqX_split_by_degree 280
FqX_split_deg1 525
FqX_split_equal 371
FqX_split_roots 308
FqX_sqf_split 14
Mod0pX 14
ZX_factmod_init 494558
add 707
all_roots_mod_p 35
cmpGuGu 1187694
deg1_Flx 81956
factcantor 49
factcantor0 77
factmod 70
factmod_aux 147
factmod_init 217
factorff 280
factormod0 91
ffcheck 280
isabsolutepol 3395
polrootsff 70
prime_fact 35
rootmod 56
rootmod0 70
rootmod2 14
rootmod_aux 56753
simplefactmod 28
split_Flx_cut_out_roots 17127
split_add 10980
split_add_done 24807
split_done 7128
split_init 19052
split_moveto_done 10980
split_nonsquares 19
split_squares 19
split_todo 8509
to_Fq 9520
to_FqC 35
to_Fq_fact 245
to_Fq_pol 4354
trivial_fact 434
try_pow 231
zero_fact_intmod 14

Generated by: LCOV version 1.9