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 16791-0d1274a) Lines: 1392 1619 86.0 %
Date: 2014-09-16 Functions: 129 144 89.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 769 1132 67.9 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 19917530
Flm_Frobenius 1390
Flm_Frobenius_pow 0
Flv_polint_all 378
FlxX_pseudorem 1035
FlxX_resultant 410
FlxY_evalx_drop 7523
FlxY_to_FlyX 2643
Flx_FlxY_eval_resultant 579870
Flx_FlxY_resultant 2643
Flx_FlyX_resultant_polint 15482
Flx_factorff_irred 435
Flx_factorgalois 435
Flx_ffintersect 455
Flx_ffisom 20
Flx_intersect_ker 1390
Flx_resultant_all 6423
Flx_resultant_set_dglist 1100
FlxqV_Flx_Frobenius 1390
Flxq_ffisom_inv 20
FpM_Frobenius 20
FpM_Frobenius_pow 0
FpV_polint 2
FpXQV_FpX_Frobenius 20
FpXQ_ffisom_inv 890
FpXV_FpC_mul 302330
FpXY_Fq_evaly 8340
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 2402
FpX_compositum 0
FpX_direct_compositum 275
FpX_factorff_irred 925
FpX_factorgalois 15
FpX_ffintersect 815
FpX_ffisom 800
FpX_intersect_ker 1020
FpX_translate 0
FqC_Fq_mul 22836
FqC_add 7612
FqC_sub 11418
FqC_to_FlxC 1955
FqM_to_FlxM 180
FqV_red 3670
FqV_roots_to_pol 280
FqV_to_FlxV 234
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 6105
FqXY_evalx 4745
FqX_Fq_add 4145
FqX_Fq_mul_to_monic 2890
FqX_eval 27410
FqX_normalize 9665
FqX_translate 26710
Fq_Fp_mul 3595
Fq_add 1804912
Fq_div 170038
Fq_halve 5350
Fq_inv 58155
Fq_invsafe 0
Fq_mul 33881009
Fq_mulu 352891
Fq_neg 123613
Fq_neg_inv 0
Fq_pow 4045
Fq_powu 8695
Fq_sqr 23779
Fq_sqrt 215
Fq_sqrtn 510
Fq_sub 6991727
QXQ_intnorm 0
QXQ_inv 76043
QXQ_norm 0
QX_disc 0
QX_resultant 6862
RgC_to_Flc 8674
RgC_to_FpC 1276
RgM_is_FpM 505516
RgM_to_Flm 1247
RgM_to_FpM 163
RgV_is_FpV 1523672
RgV_to_FpV 955
RgX_is_FpX 394133
RgX_is_FpXQX 20190
RgX_to_FpX 102255
RgX_to_FpXQX 0
RgX_to_FqX 220
Rg_is_Fp 12849106
Rg_is_FpXQ 36925
Rg_to_Fp 8820713
Rg_to_FpXQ 27423
ZM_incremental_CRT 100334
ZM_init_CRT 64297
ZXQ_charpoly 7090
ZXQ_charpoly_sqf 1580
ZX_ZXY_ResBound 291414
ZX_ZXY_resultant_all 2325
ZX_ZXY_rnfequation 1655
ZX_disc 15262
ZX_disc_all 16092
ZX_incremental_CRT 2241464
ZX_incremental_CRT_raw 2442463
ZX_init_CRT 2224160
ZX_norml1 1900
ZX_resultant 23580
ZX_resultant_all 293731
Z_incremental_CRT 1532814
Z_init_CRT 303044
_Fq_add 1168719
_Fq_equal0 71791
_Fq_inv 4728
_Fq_mul 1225453
_Fq_neg 48303
_Fq_red 484366
_Fq_s 30241
char_update_int 360
char_update_prime 380
charact 1240
charact_res 21575
characteristic 745
f2init 35
ffinit 35
ffinit_Artin_Shreier 0
ffinit_fact 1206
ffinit_nofact 64
ffinit_rand 0
ffnbirred 860
ffnbirred0 100
ffsumnbirred 130
fp_resultant 21
fpinit 1510
fpinit_check 5975
get_Fq_field 362
init_Fq 1575
init_Fq_i 1610
init_modular 3248449
monomial 1585094
monomialcopy 5298314
pol_comp 4
pol_x_powers 13615
polint_triv 0
residual_characteristic 1655
swap_vars 27
trivial_case 589718

Generated by: LCOV version 1.9