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 to exceed 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 - FpXQX_factor.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29806-4d001396c7) Lines: 1614 1957 82.5 %
Date: 2024-12-21 09:08:57 Functions: 127 154 82.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xqX_ddf 0
Flx_ffintersect 0
Flx_rootsff 0
FlxqX_Berlekamp_i 0
FlxqX_Berlekamp_ker_i 0
FlxqX_ddf 0
FlxqX_factor_squarefree 0
FlxqX_nbfact_Frobenius 0
FlxqX_split_Berlekamp 0
Flxq_ffisom_inv 0
FpXQX_Berlekamp_i 0
FpXQX_Berlekamp_ker_i 0
FpXQX_edf_simple 0
FpXQX_factor_Berlekamp 0
FpXQX_factor_Berlekamp_i 0
FpXQX_nbfact 0
FpXQX_nbfact_Frobenius 0
FpXQX_roots_mult 0
FpXQX_split_Berlekamp 0
FpX_factorff 0
FpX_nbfactff 0
FpX_rootsff 0
FqX_nbfact 0
err_FpXQ 0
factorff 0
polrootsff 0
rootmod0 0
FpXQX_ddf 7
FpXQX_ddf_raw 7
FpXQX_factor_squarefree 7
FpXQX_edf 8
err_Flxq 14
sqf_to_fact 14
FpXQX_factor_Shoup 22
FpXQX_edf_rec 23
factormodDDF 28
FpM_Frobenius_pow 35
factormodSQF 35
F2xqX_ddf_init 42
F2xqX_degfact 42
FlxqX_ddf_i 42
FlxqX_degfact 42
FlxqX_factor_squarefree_pre 42
FpXQX_degfact 42
FpXQX_degfact_raw 42
FpXQX_factor_2 43
FpXQX_ddf_i 49
F2xqX_ispower 56
FpX_factorff_i 63
FpXQX_ddf_Shoup 71
FpXQX_roots_ddf 83
F2xqX_ddf_i 91
FlxqX_ispower 98
FpXQX_ispower 98
F2xqX_factor 133
FlxqX_edf 146
FlxqX_nbfact_by_degree 147
F2xqX_edf_simple 168
FpXQX_factor_Cantor 177
FpX_FpM_FpC_eval 182
FpX_intersect_ker 182
FlxqX_factor 187
FpXQX_ddf_degree 187
to_Fq_fact 189
FpXQX_factor_Yun 210
FqX_ispower 210
to_FqC 224
FpXQXQ_halfFrobenius 238
to_Fq_pol 252
FlxqX_ddf_degree 268
F2xqX_factor_Shoup 308
FpX_rootsff_i 308
FpX_factorgalois 322
FpX_ffintersect 322
F2xqX_ddf_Shoup 350
RgX_to_FFX 350
FlxqX_factor_Shoup 356
FlxqX_edf_simple 357
FlxqX_edf_rec 362
FpXQX_Frobenius 388
Flm_Frobenius_pow 399
FlxqXQ_halfFrobenius 470
FpXQXQ_Frobenius 493
F2x_factorff_i 504
FlxqX_ddf_Shoup 545
FlxqX_invFrobenius 581
F2xqX_factor_2 588
FpXQ_ffisom_inv 588
FE_concat 595
FlxqX_Frobenius_deflate 644
FlxqX_Frobenius 678
FpXQX_quad_roots 818
FlxqX_factor_2 832
factmod 910
FpXQX_roots_split 949
FpXQXQ_halfFrobenius_i 1233
F2xqX_factor_Cantor 1407
FpXQX_nbroots 1645
FpXQX_split_part 1701
FpXQX_roots_edf 1935
FpXQX_easyroots 2618
isabsolutepol 2703
FpX_ffisom 2742
Flx_ffisom 2784
Flxq_ffisom_inv_pre 2784
to_Fq 4851
Flx_nbfactff 7084
FlxqX_nbfact 7084
simpleff_to_nbfact 7084
FlxqX_nbroots 7319
FlxqX_split_part 9004
F2xqX_Frobenius_deflate 9289
FlxqX_roots_split 9420
FlxqX_Frobenius_pre 9871
FlxqX_is_squarefree 10679
F2xqX_quad_roots 11508
Flx_factorff_i 12047
FlxqXQ_halfFrobenius_i 12192
FlxqX_factor_Cantor 12745
FpXQX_factor 14009
FpXQX_factor_i 14009
FlxqX_quad_roots 14727
F2x_rootsff_i 16590
F2xX_to_F2x 17094
FpXQX_roots 24454
FpXQX_roots_i 24454
Flx_rootsff_i 30010
FpX_factorff_irred 32879
Flx_intersect_ker 39198
Flx_Flm_Flc_eval 40244
Flx_factorgalois 40430
Flx_ffintersect_pre 43228
FlxqX_roots 46483
simplefactmod 47975
factormod0 48451
ff_parse_Tp 49515
F2xqX_roots_edf 50064
FlxqX_roots_edf 53378
FlxqX_factor_squarefree_i 59975
FlxqX_roots_ddf 63886
FlxqX_roots_i 66494
FlxqXQ_Frobenius 69345
F2xqXQ_Frobenius 70672
F2xqX_factor_squarefree 71407
F2xqX_roots 71470
F2xqX_roots_i 75313
F2xqX_roots_ddf 80962
polrootsmod 103677
Flx_factorff_irred 111681
FqX_nbroots 122857
factmod_init 152625
FlxqX_easyroots 183751
F2xqX_easyroots 206332
FqX_is_squarefree 683620

Generated by: LCOV version 1.16