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 16937-4bd9b4e) Lines: 1388 1630 85.2 %
Date: 2014-10-24 Functions: 127 144 88.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 774 1151 67.2 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 28245056
Flm_Frobenius 1946
Flm_Frobenius_pow 0
Flv_polint_all 496
FlxX_pseudorem 1456
FlxX_resultant 574
FlxY_evalx_drop 9982
FlxY_to_FlyX 3554
Flx_FlxY_eval_resultant 810592
Flx_FlxY_resultant 3554
Flx_FlyX_resultant_polint 21484
Flx_factorff_irred 882
Flx_factorgalois 882
Flx_ffintersect 910
Flx_ffisom 28
Flx_intersect_ker 1946
Flx_resultant_all 8449
Flx_resultant_set_dglist 1533
FlxqV_Flx_Frobenius 1946
Flxq_ffisom_inv 28
FpM_Frobenius 28
FpM_Frobenius_pow 0
FpV_polint 2
FpXQV_FpX_Frobenius 28
FpXQ_ffisom_inv 1246
FpXV_FpC_mul 423262
FpXY_Fq_evaly 12838
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 3355
FpX_compositum 0
FpX_direct_compositum 399
FpX_factorff_irred 2016
FpX_factorgalois 21
FpX_ffintersect 1141
FpX_ffisom 1120
FpX_intersect_ker 1428
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqC_to_FlxC 721
FqM_to_FlxM 112
FqV_red 4802
FqV_roots_to_pol 392
FqV_to_FlxV 346
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 9184
FqXY_evalx 27027
FqX_Fq_add 6632
FqX_Fq_mul_to_monic 14917
FqX_eval 103119
FqX_normalize 39865
FqX_translate 37380
Fq_Fp_mul 22386
Fq_add 4167044
Fq_div 319645
Fq_halve 8274
Fq_inv 34062
Fq_invsafe 0
Fq_mul 49438614
Fq_mulu 472581
Fq_neg 210366
Fq_neg_inv 0
Fq_pow 5586
Fq_powu 13356
Fq_sqr 53882
Fq_sqrt 5971
Fq_sqrtn 714
Fq_sub 11052109
QXQ_intnorm 0
QXQ_inv 105722
QXQ_norm 0
QX_disc 0
QX_resultant 9601
RgC_to_Flc 12132
RgC_to_FpC 1784
RgM_is_FpM 702383
RgM_to_Flm 1740
RgM_to_FpM 227
RgV_is_FpV 2123105
RgV_to_FpV 1330
RgX_is_FpX 537906
RgX_is_FpXQX 27713
RgX_to_FpX 129710
RgX_to_FpXQX 14
RgX_to_FqX 490
Rg_is_Fp 17801789
Rg_is_FpXQ 54173
Rg_to_Fp 12192838
Rg_to_FpXQ 23976
ZM_incremental_CRT 140491
ZM_init_CRT 90082
ZXQ_charpoly 9772
ZXQ_charpoly_sqf 2212
ZX_ZXY_ResBound 398474
ZX_ZXY_resultant_all 3206
ZX_ZXY_rnfequation 2296
ZX_disc 20260
ZX_disc_all 21401
ZX_incremental_CRT 3136663
ZX_incremental_CRT_raw 3417983
ZX_init_CRT 3112342
ZX_norml1 2597
ZX_resultant 32900
ZX_resultant_all 401724
Z_incremental_CRT 2122355
Z_init_CRT 414819
_Fq_add 590690
_Fq_equal0 24007
_Fq_inv 1144
_Fq_mul 611664
_Fq_neg 1214
_Fq_red 45120
_Fq_s 1160
char_update_int 504
char_update_prime 532
charact 1729
charact_res 30205
characteristic 1036
f2init 49
ffinit 56
ffinit_Artin_Shreier 0
ffinit_fact 2235
ffinit_nofact 89
ffinit_rand 0
ffnbirred 1204
ffnbirred0 140
ffsumnbirred 182
fp_resultant 29
fpinit 2674
fpinit_check 10122
get_Fq_field 204
init_Fq 2751
init_Fq_i 2807
init_modular 4534993
monomial 2165107
monomialcopy 7180726
pol_comp 4
pol_x_powers 18921
polint_triv 0
residual_characteristic 2317
swap_vars 37
trivial_case 806606

Generated by: LCOV version 1.9