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 - polarit3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17932-6fdb233) Lines: 1440 1670 86.2 %
Date: 2015-08-02 Functions: 130 147 88.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 802 1163 69.0 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 30930967
Flm_Frobenius 1960
Flm_Frobenius_pow 0
Flv_polint_all 396
FlxX_pseudorem 4946
FlxX_resultant 1792
FlxY_evalx_drop 8635
FlxY_to_FlyX 4865
Flx_FlxY_eval_resultant 334282
Flx_FlxY_resultant 4863
Flx_FlxY_resultant_polint 10498
Flx_factorff_irred 917
Flx_factorgalois 917
Flx_ffintersect 945
Flx_ffisom 28
Flx_intersect_ker 1960
Flx_resultant_all 7074
Flx_resultant_set_dglist 1561
FlxqV_Flx_Frobenius 1960
Flxq_ffisom_inv 28
FpM_Frobenius 28
FpM_Frobenius_pow 0
FpV_polint 2
FpXQV_FpX_Frobenius 28
FpXQ_ffisom_inv 1274
FpXV_FpC_mul 844774
FpXY_Fq_evaly 18858
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 4525
FpX_compositum 0
FpX_direct_compositum 406
FpX_factorff_irred 2254
FpX_factorgalois 21
FpX_ffintersect 1169
FpX_ffisom 1148
FpX_intersect_ker 1442
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqC_to_FlxC 1932
FqM_to_FlxM 392
FqV_red 10339
FqV_roots_to_pol 392
FqV_to_FlxV 346
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 14728
FqXY_evalx 30310
FqX_Fq_add 9250
FqX_Fq_mul_to_monic 16464
FqX_eval 118328
FqX_normalize 44975
FqX_translate 37380
Fq_Fp_mul 30429
Fq_add 6369838
Fq_div 438466
Fq_halve 12551
Fq_inv 50167
Fq_invsafe 0
Fq_mul 50996878
Fq_mulu 565243
Fq_neg 271686
Fq_neg_inv 0
Fq_pow 6958
Fq_powu 12320
Fq_sqr 70973
Fq_sqrt 6041
Fq_sqrtn 819
Fq_sub 12129680
QXQ_intnorm 0
QXQ_inv 111914
QXQ_norm 0
QX_disc 0
QX_resultant 10160
RgC_to_Flc 12594
RgC_to_FpC 331659
RgM_is_FpM 645545
RgM_to_Flm 1761
RgM_to_FpM 28199
RgV_is_FpV 1554402
RgV_to_FpV 1071
RgX_is_FpX 917594
RgX_is_FpXQX 29239
RgX_to_FpX 131019
RgX_to_FpXQX 70
RgX_to_FqX 532
Rg_is_Fp 13444391
Rg_is_FpXQ 62797
Rg_to_Fp 19136521
Rg_to_FpXQ 39754
ZM_incremental_CRT 170034
ZM_init_CRT 98009
ZXQ_charpoly 10017
ZXQ_charpoly_sqf 2296
ZX_ZXY_ResBound 395691
ZX_ZXY_resultant_all 4158
ZX_ZXY_rnfequation 2527
ZX_disc 22836
ZX_disc_all 24831
ZX_incremental_CRT 3132530
ZX_incremental_CRT_raw 3421047
ZX_init_CRT 3115674
ZX_norml1 5593
ZX_resultant 23946
ZX_resultant_all 399914
ZX_resultant_prime 780622
ZX_resultant_slice 669645
Z_incremental_CRT 221020
Z_init_CRT 17234
_Fq_add 600195
_Fq_equal0 24042
_Fq_inv 1158
_Fq_mul 622719
_Fq_neg 1235
_Fq_red 46726
_Fq_s 1167
char_update_int 581
char_update_prime 672
charact 539126
charact_res 30296
characteristic 2415
f2init 263
ffinit 84
ffinit_Artin_Shreier 0
ffinit_fact 2575
ffinit_nofact 89
ffinit_rand 0
ffnbirred 3178
ffnbirred0 140
ffsumnbirred 427
fp_resultant 42
fpinit 2807
fpinit_check 10840
get_Fq_field 195
get_nbprimes 395775
init_Fq 3154
init_Fq_i 3239
init_modular 4167073
monomial 2257237
monomialcopy 7309536
pol_comp 4
pol_x_powers 19425
polint_triv 0
residual_characteristic 2324
swap_vars 5250
trivial_case 801474

Generated by: LCOV version 1.9