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 16624-25b9976) Lines: 1392 1618 86.0 %
Date: 2014-06-24 Functions: 129 144 89.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 765 1128 67.8 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 20181345
Flm_Frobenius 1394
Flm_Frobenius_pow 0
Flv_polint_all 378
FlxX_pseudorem 945
FlxX_resultant 400
FlxY_evalx_drop 7523
FlxY_to_FlyX 2643
Flx_FlxY_eval_resultant 571311
Flx_FlxY_resultant 2643
Flx_FlyX_resultant_polint 15469
Flx_factorff_irred 433
Flx_factorgalois 433
Flx_ffintersect 453
Flx_ffisom 20
Flx_intersect_ker 1394
Flx_resultant_all 6423
Flx_resultant_set_dglist 1100
FlxqV_Flx_Frobenius 1394
Flxq_ffisom_inv 20
FpM_Frobenius 20
FpM_Frobenius_pow 0
FpV_polint 2
FpXQV_FpX_Frobenius 20
FpXQ_ffisom_inv 896
FpXV_FpC_mul 302330
FpXY_Fq_evaly 8340
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 2402
FpX_compositum 0
FpX_direct_compositum 265
FpX_factorff_irred 929
FpX_factorgalois 15
FpX_ffintersect 821
FpX_ffisom 806
FpX_intersect_ker 1024
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 3052
FqX_eval 27410
FqX_normalize 9846
FqX_translate 30191
Fq_Fp_mul 3595
Fq_add 1810466
Fq_div 170040
Fq_halve 5350
Fq_inv 58313
Fq_invsafe 0
Fq_mul 33937110
Fq_mulu 352891
Fq_neg 123662
Fq_neg_inv 0
Fq_pow 4054
Fq_powu 8695
Fq_sqr 23779
Fq_sqrt 215
Fq_sqrtn 512
Fq_sub 6987809
QXQ_intnorm 0
QXQ_inv 76901
QXQ_norm 0
QX_disc 0
QX_resultant 6855
RgC_to_Flc 8674
RgC_to_FpC 1276
RgM_is_FpM 590444
RgM_to_Flm 1247
RgM_to_FpM 163
RgV_is_FpV 1696354
RgV_to_FpV 955
RgX_is_FpX 404217
RgX_is_FpXQX 14060
RgX_to_FpX 102235
RgX_to_FpXQX 0
RgX_to_FqX 205
Rg_is_Fp 13357638
Rg_is_FpXQ 27755
Rg_to_Fp 9080889
Rg_to_FpXQ 27273
ZM_incremental_CRT 100451
ZM_init_CRT 64255
ZXQ_charpoly 7089
ZXQ_charpoly_sqf 1582
ZX_ZXY_ResBound 346640
ZX_ZXY_resultant_all 2327
ZX_ZXY_rnfequation 1652
ZX_disc 15208
ZX_disc_all 16038
ZX_incremental_CRT 2241523
ZX_incremental_CRT_raw 2444124
ZX_init_CRT 2224207
ZX_norml1 1839
ZX_resultant 23571
ZX_resultant_all 348985
Z_incremental_CRT 1764346
Z_init_CRT 358276
_Fq_add 1168559
_Fq_equal0 71791
_Fq_inv 4728
_Fq_mul 1225133
_Fq_neg 48303
_Fq_red 484206
_Fq_s 30241
char_update_int 360
char_update_prime 380
charact 1240
charact_res 21523
characteristic 745
f2init 35
ffinit 35
ffinit_Artin_Shreier 0
ffinit_fact 1196
ffinit_nofact 59
ffinit_rand 0
ffnbirred 860
ffnbirred0 100
ffsumnbirred 130
fp_resultant 20
fpinit 1485
fpinit_check 5850
get_Fq_field 322
init_Fq 1560
init_Fq_i 1595
init_modular 3304300
monomial 1584704
monomialcopy 5298399
pol_comp 4
pol_x_powers 13630
polint_triv 0
residual_characteristic 1651
swap_vars 27
trivial_case 700225

Generated by: LCOV version 1.9