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 16827-3d78da8) Lines: 1590 1709 93.0 %
Date: 2014-09-29 Functions: 142 152 93.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 863 1136 76.0 %

Function Name Sort by function name Hit count Sort by hit count
F2xV_to_FlxV_inplace 553
F2xV_to_ZXV_inplace 74396
F2x_Berlekamp_i 74389
F2x_Berlekamp_ker 20181
F2x_degfact_2 581
F2x_factcantor 7280
F2x_factcantor_i 9569
F2x_factor 0
F2x_factor_2 30247
F2x_factor_deg2 30835
F2x_is_irred 140
F2x_is_irred_2 7
F2x_quad_factortype 24367
F2x_split 19670
F2x_split_Berlekamp 42826
F2xqX_quad_roots 1624
Fl_disc_bc 219990
Fl_nonsquare 6
Flm_Flx_mul 213836
FlxV_to_ZXV_inplace 367083
Flx_Berlekamp_i 370198
Flx_Berlekamp_ker 145180
Flx_Xn1 13
Flx_Xnm1 20
Flx_addmul_inplace 398933
Flx_cubic_root 14
Flx_cut_out_roots 14
Flx_degfact 149912
Flx_degfact_2 27307
Flx_factcantor 7224
Flx_factcantor_i 170030
Flx_factor 17136
Flx_factor_2 204139
Flx_factor_deg2 231446
Flx_is_irred 581
Flx_is_irred_2 0
Flx_nbfact 35084
Flx_nbfact_by_degree 76391
Flx_nbroots 2206473
Flx_oneroot 630
Flx_oneroot_i 1430
Flx_oneroot_mod_2 14
Flx_otherroot 142202
Flx_quad_factortype 27293
Flx_quad_root 192697
Flx_root_mod_2 5733
Flx_roots 0
Flx_roots_i 49196
Flx_roots_naive 14
Flx_split 103929
Flx_split_Berlekamp 169087
Flx_try_pow 55209
FlxqXQ_halfFrobenius 2730
FlxqX_Berlekamp_ker 68
FlxqX_Frobenius 1051
FlxqX_nbroots 7
FlxqX_split_part 27
FpXQXQ_halfFrobenius 2622
FpXQX_Berlekamp_ker 70
FpXQX_Frobenius 132
FpXQX_nbfact 0
FpXQX_nbroots 28
FpXQX_split_part 8
FpX_Berlekamp_i 439829
FpX_Berlekamp_ker 77
FpX_degfact 0
FpX_degfact_2 14
FpX_factcantor 0
FpX_factcantor_i 91
FpX_factor 439766
FpX_factor_2 56
FpX_factor_deg2 77
FpX_factorff 0
FpX_factorff_i 252
FpX_is_irred 14
FpX_is_irred_2 7
FpX_is_totally_split 0
FpX_nbfact 28
FpX_nbroots 17675
FpX_oneroot 2898
FpX_oneroot_i 2084
FpX_otherroot 1858
FpX_quad_factortype 21
FpX_quad_root 3961
FpX_roots 56700
FpX_roots_i 1785
FpX_rootsff 0
FpX_rootsff_i 581
FpX_split 434
FpX_split_Berlekamp 187
FpX_split_part 57715
FqXC_roots_from_deg1 301
FqX_Frobenius_eval 1953
FqX_Frobenius_powers 735
FqX_deriv 15218
FqX_factor 637
FqX_factor_i 406
FqX_frob_deflate 63
FqX_is_squarefree 462
FqX_nbfact 0
FqX_nbroots 1169
FqX_quad_roots 1995
FqX_rand 2598
FqX_roots 5180
FqX_roots_i 2940
FqX_split 3878
FqX_split_Berlekamp 70
FqX_split_Trager 35
FqX_split_all 56
FqX_split_by_degree 280
FqX_split_deg1 504
FqX_split_equal 364
FqX_split_roots 301
FqX_sqf_split 14
Mod0pX 14
ZX_factmod_init 499378
add 700
all_roots_mod_p 35
cmpGuGu 1193886
deg1_Flx 82222
factcantor 56
factcantor0 91
factmod 77
factmod_aux 168
factmod_init 245
factorff 287
factormod0 91
ffcheck 287
isabsolutepol 3332
polrootsff 70
prime_fact 35
rootmod 63
rootmod0 70
rootmod2 14
rootmod_aux 56777
simplefactmod 35
split_Flx_cut_out_roots 17148
split_add 11001
split_add_done 24632
split_done 7135
split_init 18933
split_moveto_done 11001
split_nonsquares 19
split_squares 19
split_todo 8558
to_Fq 9562
to_FqC 35
to_Fq_fact 252
to_Fq_pol 4375
trivial_fact 455
try_pow 231
zero_fact_intmod 14

Generated by: LCOV version 1.9