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 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.10.0 lcov report (development 21355-49ee849) Lines: 1421 1678 84.7 %
Date: 2017-11-25 06:21:19 Functions: 105 120 87.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flx_rootsff 0
FlxqX_Berlekamp_i 0
FlxqX_Berlekamp_ker_i 0
FlxqX_split_Berlekamp 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_split_Berlekamp 0
FpX_factorff 0
FpX_nbfactff 0
FpX_rootsff 0
FqX_nbfact 0
FpXQX_edf 8
FpXQX_roots_ddf 21
FpXQX_factor_Shoup 22
FpXQX_edf_rec 23
FpM_Frobenius_pow 28
FpX_rootsff_i 28
to_FqC 28
FpXQX_factor_2 43
F2xqX_ispower 49
FpX_factorff_i 49
FpXQX_nbfact_Frobenius 50
FpXQX_ddf 72
FpX_factorgalois 77
FpX_ffintersect 77
FlxqX_ispower 91
FpXQX_ispower 91
FpXQX_factor_Yun 92
F2xqX_factor 105
FlxqX_edf 118
FpXQX_Frobenius 130
FlxqX_nbfact_Frobenius 132
FlxqX_factor 138
FpXQXQ_halfFrobenius 138
FpX_FpM_FpC_eval 140
FpX_intersect_ker 140
FpXQX_factor_Cantor 163
F2xqX_edf_simple 168
FpXQ_ffisom_inv 168
FpXQXQ_Frobenius 173
FlxqX_factor_2 195
FqX_ispower 210
FlxqX_factor_Shoup 216
FlxqX_edf_rec 229
F2xqX_factor_2 245
FlxqXQ_halfFrobenius 271
F2xqX_ddf 273
F2xqX_factor_Shoup 273
Flx_nbfactff 280
FlxqX_nbfact 280
simpleff_to_nbfact 280
F2x_factorff_i 287
FlxqX_ddf 348
FlxqX_edf_simple 357
Flm_Frobenius_pow 371
to_Fq_fact 392
ffcheck 420
FE_concat 448
FpX_factorff_irred 462
FlxqX_is_squarefree 483
FlxqX_invFrobenius 546
factorff 588
FlxqX_Frobenius_deflate 609
FpXQX_quad_roots 677
F2xqX_factor_Cantor 819
FpXQX_nbroots 826
FpXQX_split_part 854
FlxqX_nbroots 868
FpXQX_roots_split 926
Flx_factorff_i 938
FlxqX_factor_Cantor 1097
FpXQXQ_halfFrobenius_i 1120
FpX_ffisom 1190
Flx_ffisom 1225
Flxq_ffisom_inv 1225
FpXQX_factor 1444
FlxqX_split_part 1714
FpXQX_roots_edf 1827
FpXQX_factor_i 1836
FpXQX_easyroots 2017
FlxqX_Frobenius 2110
isabsolutepol 2138
Flx_intersect_ker 2870
Flx_Flm_Flc_eval 3374
Flx_factorgalois 3934
to_Fq_pol 4522
Flx_ffintersect 5159
FlxqX_roots_split 8398
to_Fq 9114
F2xqX_Frobenius_deflate 9240
FlxqXQ_halfFrobenius_i 10775
F2xqX_quad_roots 11207
FlxqX_quad_roots 13232
F2x_rootsff_i 15134
F2xX_to_F2x 15421
FpXQX_roots 17160
FpXQX_roots_i 17188
Flx_rootsff_i 23884
Flx_factorff_irred 29078
FlxqX_roots 46281
F2xqX_roots_edf 50211
FlxqX_roots_edf 50743
FlxqX_factor_squarefree 58939
FlxqXQ_Frobenius 60587
FlxqX_roots_i 60969
FlxqX_roots_ddf 63007
F2xqXQ_Frobenius 70777
F2xqX_factor_squarefree 71498
F2xqX_roots 71505
F2xqX_roots_i 73836
F2xqX_roots_ddf 81116
FqX_nbroots 82971
polrootsff 103390
FlxqX_easyroots 174712
F2xqX_easyroots 205156
FqX_is_squarefree 242977

Generated by: LCOV version 1.11