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 17584-800456e) Lines: 1440 1670 86.2 %
Date: 2015-03-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 30920320
Flm_Frobenius 1946
Flm_Frobenius_pow 0
Flv_polint_all 396
FlxX_pseudorem 4744
FlxX_resultant 1671
FlxY_evalx_drop 8635
FlxY_to_FlyX 4743
Flx_FlxY_eval_resultant 334282
Flx_FlxY_resultant 4739
Flx_FlxY_resultant_polint 10498
Flx_factorff_irred 917
Flx_factorgalois 917
Flx_ffintersect 945
Flx_ffisom 28
Flx_intersect_ker 1946
Flx_resultant_all 7074
Flx_resultant_set_dglist 1561
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 1267
FpXV_FpC_mul 425446
FpXY_Fq_evaly 13258
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 4546
FpX_compositum 0
FpX_direct_compositum 399
FpX_factorff_irred 2254
FpX_factorgalois 21
FpX_ffintersect 1162
FpX_ffisom 1141
FpX_intersect_ker 1428
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 9688
FqXY_evalx 27230
FqX_Fq_add 6730
FqX_Fq_mul_to_monic 16464
FqX_eval 103908
FqX_normalize 44947
FqX_translate 37380
Fq_Fp_mul 23709
Fq_add 6000098
Fq_div 318759
Fq_halve 8631
Fq_inv 48487
Fq_invsafe 0
Fq_mul 50593818
Fq_mulu 460943
Fq_neg 256146
Fq_neg_inv 0
Fq_pow 6958
Fq_powu 8120
Fq_sqr 52913
Fq_sqrt 6041
Fq_sqrtn 812
Fq_sub 12093539
QXQ_intnorm 0
QXQ_inv 111905
QXQ_norm 0
QX_disc 0
QX_resultant 10160
RgC_to_Flc 12594
RgC_to_FpC 331659
RgM_is_FpM 752101
RgM_to_Flm 1761
RgM_to_FpM 28199
RgV_is_FpV 2289938
RgV_to_FpV 1071
RgX_is_FpX 658976
RgX_is_FpXQX 28952
RgX_to_FpX 130970
RgX_to_FpXQX 63
RgX_to_FqX 525
Rg_is_Fp 19895161
Rg_is_FpXQ 62041
Rg_to_Fp 19146818
Rg_to_FpXQ 24578
ZM_incremental_CRT 169453
ZM_init_CRT 97869
ZXQ_charpoly 9989
ZXQ_charpoly_sqf 2296
ZX_ZXY_ResBound 395567
ZX_ZXY_resultant_all 4130
ZX_ZXY_rnfequation 2527
ZX_disc 22696
ZX_disc_all 24684
ZX_incremental_CRT 3132439
ZX_incremental_CRT_raw 3421292
ZX_init_CRT 3115587
ZX_norml1 5593
ZX_resultant 23932
ZX_resultant_all 399769
ZX_resultant_prime 776081
ZX_resultant_slice 665906
Z_incremental_CRT 219480
Z_init_CRT 17213
_Fq_add 600167
_Fq_equal0 24042
_Fq_inv 1158
_Fq_mul 622663
_Fq_neg 1235
_Fq_red 46698
_Fq_s 1167
char_update_int 581
char_update_prime 672
charact 539126
charact_res 30205
characteristic 2415
f2init 269
ffinit 77
ffinit_Artin_Shreier 0
ffinit_fact 2560
ffinit_nofact 89
ffinit_rand 0
ffnbirred 2359
ffnbirred0 140
ffsumnbirred 378
fp_resultant 42
fpinit 2779
fpinit_check 10765
get_Fq_field 188
get_nbprimes 395644
init_Fq 3145
init_Fq_i 3220
init_modular 4166201
monomial 2188889
monomialcopy 7308087
pol_comp 4
pol_x_powers 19404
polint_triv 0
residual_characteristic 2317
swap_vars 5215
trivial_case 801198

Generated by: LCOV version 1.9