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-bordeaux.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.10.0 lcov report (development 21730-50db3b0) Lines: 1317 1497 88.0 %
Date: 2018-01-19 06:18:47 Functions: 143 157 91.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpX_compositum 0
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqXQ_matrix_pow 0
FqXQ_powers 0
Fq_invsafe 0
Fq_neg_inv 0
QXQ_intnorm 0
QXQ_norm 0
QX_disc 0
ffinit_Artin_Shreier 0
ffinit_rand 0
FpX_FpXY_eval_resultant 4
fffrobenius 42
err_compo 84
ffextend 84
FpX_diamondsum 105
ffinvmap 126
ffnbirred0 140
ffembed 175
ffinit 189
QXQ_div_ratlift 273
f2init 289
Z_init_CRT 315
RgM_to_FqM 336
ZXM_incremental_CRT 336
ffcompomap 420
ffsumnbirred 434
RgX_to_FpXQX 448
get_Fq_field 455
FpX_direct_compositum 504
_FpX_direct_compositum 504
FqV_to_FlxV 591
ZXM_init_CRT 609
char_update_prime 637
FqV_roots_to_pol 665
RgX_to_FqX 777
QXQ_charpoly 819
FpXM_center 886
RgV_to_FpV 1022
ffmap 1022
FqX_Fq_sub 1048
ffpartmapimage 1092
ZX_incremental_CRT 1299
char_update_int 1365
FqX_Fq_add 1386
FpXC_center 1551
FpX_FpXY_resultant 1552
Flx_resultant_set_dglist 1561
FlxX_resultant 1565
ZX_ZXY_resultant_LERS 1568
FlxY_to_FlyX 1575
Flx_FlxY_resultant 1576
ZXQ_charpoly_sqf 1862
checkmap 1988
ZX_ZXY_rnfequation_lambda 2142
ZX_ZXY_resultant_all 2275
residual_characteristic 2415
ZX_ZXY_rnfequation 2695
ffeltmap_i 2695
RgX_is_FpXQX 2800
ffinit_fact 3103
FpXV_direct_compositum 3105
FpXQX_normalize 3167
ffnbirred 3178
fpinit 3318
init_Fq 3761
ZX_ZXY_resultant 3899
init_Fq_i 3950
ffmap_i 4424
FlxX_pseudorem 4855
_Fq_inv 5397
RgC_to_FqC 6580
Z_incremental_CRT 7063
Flx_resultant_all 7074
FlxY_evalx_drop 8635
ZX_ZXY_resultant_slice 8690
ZX_ZXY_resultant_worker 8690
FqM_to_FlxM 8739
swap_vars 8869
characteristic 9002
QXQ_sqr 9968
QX_resultant 10530
ZXQ_charpoly 11514
Fq_halve 11807
ZX_ZXY_resultant_prime 11957
Flx_FlxY_resultant_polint 11970
fpinit_check 12840
FqXY_eval 13027
Fq_powu 13307
ZX_norml1 14952
RgM_is_FpM 17094
ZM_incremental_CRT 18349
FpXY_Fq_evaly 18669
Fq_pow 19803
pol_x_powers 19901
QXQ_inv 25288
_Fq_s 28854
FqXY_evalx 30660
ZX_resultant 31070
charact_res 32340
FqX_translate 34167
Fq_inv 34670
QXQ_mul 36512
RgV_is_FpV 37821
ZX_disc 47014
ZX_disc_all 48043
FqC_to_FlxC 50153
Fq_Fp_mul 52800
Rg_is_FpXQ 57106
Fq_sqrtn 60432
FqX_Fq_mul_to_monic 63567
RgM_to_FpM 71404
ZX_ZXY_ResBound 74002
ZX_resultant_all 78421
gen_crt 92762
_Fq_equal0 96488
ZM_init_CRT 98364
RgM_to_Flm 114236
FqV_red 123067
FqX_eval 124299
trivial_case 153567
ZX_incremental_CRT_raw 176816
Rg_to_FpXQ 184010
_Fq_neg 207011
gen_inccrt 208896
Flx_FlxY_eval_resultant 254516
Fq_sqr 263535
RgV_to_Flv 281602
get_nbprimes 288593
monomial 323337
Fq_neg 468440
RgC_to_FpC 470527
Fq_div 490357
ZX_resultant_slice 536111
ZX_resultant_worker 536130
charact 580972
_Fq_red 606124
Fq_sqrt 709098
primelist_disc 720124
Fq_mulu 746843
FpXV_FpC_mul 849765
_Fq_add 1157849
RgX_to_FpX 1232689
_Fq_mul 1232763
ZX_resultant_prime 1286749
Fl_chinese_coprime 2536288
ZX_init_CRT 3165948
Fq_sub 4856305
Fq_add 6938521
monomialcopy 7598185
RgX_is_FpX 18921027
Rg_to_Fp 21085212
Fq_mul 42370433
Rg_is_Fp 55030326

Generated by: LCOV version 1.11