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 17238-ce76349) Lines: 1440 1670 86.2 %
Date: 2014-12-20 Functions: 130 147 88.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 800 1163 68.8 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 30027540
Flm_Frobenius 1946
Flm_Frobenius_pow 0
Flv_polint_all 396
FlxX_pseudorem 1456
FlxX_resultant 574
FlxY_evalx_drop 8635
FlxY_to_FlyX 3645
Flx_FlxY_eval_resultant 334282
Flx_FlxY_resultant 3645
Flx_FlxY_resultant_polint 10498
Flx_factorff_irred 882
Flx_factorgalois 882
Flx_ffintersect 910
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 1274
FpXV_FpC_mul 425446
FpXY_Fq_evaly 12838
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 3446
FpX_compositum 0
FpX_direct_compositum 399
FpX_factorff_irred 2121
FpX_factorgalois 21
FpX_ffintersect 1169
FpX_ffisom 1148
FpX_intersect_ker 1428
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqC_to_FlxC 1855
FqM_to_FlxM 364
FqV_red 10157
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 16443
FqX_eval 103119
FqX_normalize 44373
FqX_translate 37380
Fq_Fp_mul 22750
Fq_add 4263909
Fq_div 314045
Fq_halve 8274
Fq_inv 35441
Fq_invsafe 0
Fq_mul 49843341
Fq_mulu 455893
Fq_neg 221041
Fq_neg_inv 0
Fq_pow 6678
Fq_powu 7756
Fq_sqr 51642
Fq_sqrt 5971
Fq_sqrtn 798
Fq_sub 11336064
QXQ_intnorm 0
QXQ_inv 111494
QXQ_norm 0
QX_disc 0
QX_resultant 10125
RgC_to_Flc 12552
RgC_to_FpC 75921
RgM_is_FpM 761663
RgM_to_Flm 1740
RgM_to_FpM 11952
RgV_is_FpV 2477160
RgV_to_FpV 1071
RgX_is_FpX 656684
RgX_is_FpXQX 28196
RgX_to_FpX 129822
RgX_to_FpXQX 21
RgX_to_FqX 483
Rg_is_Fp 24031571
Rg_is_FpXQ 55419
Rg_to_Fp 13049561
Rg_to_FpXQ 24004
ZM_incremental_CRT 166030
ZM_init_CRT 94747
ZXQ_charpoly 10066
ZXQ_charpoly_sqf 2296
ZX_ZXY_ResBound 393250
ZX_ZXY_resultant_all 3850
ZX_ZXY_rnfequation 2527
ZX_disc 21730
ZX_disc_all 23690
ZX_incremental_CRT 3129478
ZX_incremental_CRT_raw 3418037
ZX_init_CRT 3113476
ZX_norml1 5593
ZX_resultant 23834
ZX_resultant_all 397424
ZX_resultant_prime 770474
ZX_resultant_slice 661005
Z_incremental_CRT 218248
Z_init_CRT 16723
_Fq_add 590382
_Fq_equal0 24007
_Fq_inv 1144
_Fq_mul 611048
_Fq_neg 1214
_Fq_red 44812
_Fq_s 1160
char_update_int 581
char_update_prime 651
charact 539000
charact_res 30205
characteristic 2359
f2init 49
ffinit 56
ffinit_Artin_Shreier 0
ffinit_fact 2242
ffinit_nofact 89
ffinit_rand 0
ffnbirred 1204
ffnbirred0 140
ffsumnbirred 182
fp_resultant 42
fpinit 2681
fpinit_check 10150
get_Fq_field 127
get_nbprimes 393299
init_Fq 2793
init_Fq_i 2849
init_modular 4156251
monomial 2174722
monomialcopy 7183358
pol_comp 4
pol_x_powers 19502
polint_triv 0
residual_characteristic 2317
swap_vars 4683
trivial_case 796508

Generated by: LCOV version 1.9