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 16741-1378b1c) Lines: 1392 1622 85.8 %
Date: 2014-08-17 Functions: 129 144 89.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 767 1132 67.8 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 20051477
Flm_Frobenius 1390
Flm_Frobenius_pow 0
Flv_polint_all 378
FlxX_pseudorem 945
FlxX_resultant 400
FlxY_evalx_drop 7523
FlxY_to_FlyX 2633
Flx_FlxY_eval_resultant 567585
Flx_FlxY_resultant 2633
Flx_FlyX_resultant_polint 15437
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 2392
FpX_compositum 0
FpX_direct_compositum 265
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 9655
FqX_translate 26710
Fq_Fp_mul 3595
Fq_add 1784872
Fq_div 170038
Fq_halve 5350
Fq_inv 58155
Fq_invsafe 0
Fq_mul 33876474
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 6986903
QXQ_intnorm 0
QXQ_inv 75591
QXQ_norm 0
QX_disc 0
QX_resultant 6832
RgC_to_Flc 8674
RgC_to_FpC 1276
RgM_is_FpM 542077
RgM_to_Flm 1247
RgM_to_FpM 163
RgV_is_FpV 1596463
RgV_to_FpV 955
RgX_is_FpX 400201
RgX_is_FpXQX 14040
RgX_to_FpX 102225
RgX_to_FpXQX 0
RgX_to_FqX 205
Rg_is_Fp 12926873
Rg_is_FpXQ 27680
Rg_to_Fp 8820583
Rg_to_FpXQ 27273
ZM_incremental_CRT 100266
ZM_init_CRT 64229
ZXQ_charpoly 7077
ZXQ_charpoly_sqf 1585
ZX_ZXY_ResBound 339995
ZX_ZXY_resultant_all 2325
ZX_ZXY_rnfequation 1655
ZX_disc 15222
ZX_disc_all 16052
ZX_incremental_CRT 2241424
ZX_incremental_CRT_raw 2442423
ZX_init_CRT 2224160
ZX_norml1 1840
ZX_resultant 23530
ZX_resultant_all 342282
Z_incremental_CRT 1679346
Z_init_CRT 351630
_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 21575
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 21
fpinit 1485
fpinit_check 5850
get_Fq_field 322
init_Fq 1560
init_Fq_i 1595
init_modular 3297007
monomial 1584508
monomialcopy 5298384
pol_comp 4
pol_x_powers 13615
polint_triv 0
residual_characteristic 1655
swap_vars 27
trivial_case 686785

Generated by: LCOV version 1.9