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 16912-212c0f0) Lines: 1386 1630 85.0 %
Date: 2014-10-20 Functions: 127 144 88.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 771 1151 67.0 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 28243738
Flm_Frobenius 1946
Flm_Frobenius_pow 0
Flv_polint_all 496
FlxX_pseudorem 1463
FlxX_resultant 581
FlxY_evalx_drop 9982
FlxY_to_FlyX 3701
Flx_FlxY_eval_resultant 811292
Flx_FlxY_resultant 3701
Flx_FlyX_resultant_polint 21624
Flx_factorff_irred 602
Flx_factorgalois 602
Flx_ffintersect 630
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 3362
FpX_compositum 0
FpX_direct_compositum 399
FpX_factorff_irred 1288
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 7532
FqX_Fq_add 6632
FqX_Fq_mul_to_monic 4172
FqX_eval 44634
FqX_normalize 13484
FqX_translate 37394
Fq_Fp_mul 19089
Fq_add 4019168
Fq_div 319645
Fq_halve 8239
Fq_inv 23718
Fq_invsafe 0
Fq_mul 49279279
Fq_mulu 467086
Fq_neg 196387
Fq_neg_inv 0
Fq_pow 5600
Fq_powu 13356
Fq_sqr 48345
Fq_sqrt 434
Fq_sqrtn 714
Fq_sub 11017092
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 700973
RgM_to_Flm 1740
RgM_to_FpM 227
RgV_is_FpV 2120132
RgV_to_FpV 1330
RgX_is_FpX 537336
RgX_is_FpXQX 27713
RgX_to_FpX 129710
RgX_to_FpXQX 14
RgX_to_FqX 490
Rg_is_Fp 17794630
Rg_is_FpXQ 54173
Rg_to_Fp 12192828
Rg_to_FpXQ 23976
ZM_incremental_CRT 140438
ZM_init_CRT 90029
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 3136607
ZX_incremental_CRT_raw 3417927
ZX_init_CRT 3112322
ZX_norml1 2597
ZX_resultant 32900
ZX_resultant_all 401724
Z_incremental_CRT 2122355
Z_init_CRT 414807
_Fq_add 590690
_Fq_equal0 24011
_Fq_inv 1144
_Fq_mul 611664
_Fq_neg 1214
_Fq_red 45124
_Fq_s 1164
char_update_int 504
char_update_prime 532
charact 1724
charact_res 30205
characteristic 1031
f2init 49
ffinit 56
ffinit_Artin_Shreier 0
ffinit_fact 1717
ffinit_nofact 89
ffinit_rand 0
ffnbirred 1204
ffnbirred0 140
ffsumnbirred 182
fp_resultant 29
fpinit 2156
fpinit_check 8561
get_Fq_field 205
init_Fq 2226
init_Fq_i 2282
init_modular 4534818
monomial 2165070
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