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.8.0 lcov report (development 18953-2660f45) Lines: 1416 1630 86.9 %
Date: 2016-05-29 Functions: 130 146 89.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 782 1119 69.9 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 33181098
Flm_Frobenius 2226
Flm_Frobenius_pow 0
FlxX_pseudorem 4663
FlxX_resultant 1512
FlxY_evalx_drop 8635
FlxY_to_FlyX 1617
Flx_FlxY_eval_resultant 333000
Flx_FlxY_resultant 1617
Flx_FlxY_resultant_polint 7715
Flx_factorff_irred 24689
Flx_factorgalois 3262
Flx_ffintersect 3290
Flx_ffisom 28
Flx_intersect_ker 2226
Flx_resultant_all 7074
Flx_resultant_set_dglist 1561
FlxqV_Flx_Frobenius 2226
Flxq_ffisom_inv 28
FpM_Frobenius 28
FpM_Frobenius_pow 0
FpXQV_FpX_Frobenius 28
FpXQX_normalize 7645
FpXQ_ffisom_inv 1253
FpXV_FpC_mul 844774
FpXY_Fq_evaly 17836
FpX_FpXY_eval_resultant 4
FpX_FpXY_resultant 1589
FpX_compositum 0
FpX_direct_compositum 427
FpX_factorff_irred 980
FpX_factorgalois 21
FpX_ffintersect 1148
FpX_ffisom 1127
FpX_intersect_ker 1442
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqC_to_FlxC 1932
FqM_to_FlxM 392
FqV_red 10605
FqV_roots_to_pol 588
FqV_to_FlxV 533
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 12733
FqXY_evalx 30107
FqX_Fq_add 2275
FqX_Fq_mul_to_monic 4510
FqX_eval 118839
FqX_translate 39921
Fq_Fp_mul 51609
Fq_add 8123953
Fq_div 420546
Fq_halve 11505
Fq_inv 36145
Fq_invsafe 0
Fq_mul 43364001
Fq_mulu 583729
Fq_neg 229974
Fq_neg_inv 0
Fq_pow 11795
Fq_powu 10647
Fq_sqr 88912
Fq_sqrt 6185
Fq_sqrtn 1085
Fq_sub 5583364
QXQ_charpoly 46781
QXQ_intnorm 0
QXQ_inv 134205
QXQ_norm 0
QX_disc 0
QX_resultant 10755
RgC_to_FpC 607977
RgM_is_FpM 719771
RgM_to_Flm 1768
RgM_to_FpM 44663
RgV_is_FpV 1693922
RgV_to_Flv 12615
RgV_to_FpV 1099
RgX_is_FpX 2346721
RgX_is_FpXQX 35882
RgX_to_FpX 140273
RgX_to_FpXQX 266
RgX_to_FqX 595
Rg_is_Fp 16304155
Rg_is_FpXQ 95067
Rg_to_Fp 27050115
Rg_to_FpXQ 45704
ZM_incremental_CRT 171210
ZM_init_CRT 103252
ZXQ_charpoly 56812
ZXQ_charpoly_sqf 2254
ZX_ZXY_ResBound 473177
ZX_ZXY_resultant_all 4179
ZX_ZXY_rnfequation 2485
ZX_disc 24257
ZX_disc_all 26406
ZX_incremental_CRT 3123614
ZX_incremental_CRT_raw 3413461
ZX_init_CRT 3116773
ZX_norml1 5950
ZX_resultant 23946
ZX_resultant_all 475762
ZX_resultant_prime 863705
ZX_resultant_slice 752206
ZX_resultant_worker 368372
Z_incremental_CRT 221258
Z_init_CRT 17108
_Fq_add 612187
_Fq_equal0 25182
_Fq_inv 1210
_Fq_mul 635561
_Fq_neg 1287
_Fq_red 48856
_Fq_s 1534
char_update_int 3423
char_update_prime 3290
charact 560280
charact_res 30296
characteristic 5145
f2init 279
ffinit 126
ffinit_Artin_Shreier 0
ffinit_fact 2677
ffinit_nofact 96
ffinit_rand 0
ffnbirred 3178
ffnbirred0 140
ffsumnbirred 427
fp_resultant 42
fpinit 2919
fpinit_check 11333
get_Fq_field 217
get_nbprimes 473324
init_Fq 3325
init_Fq_i 3451
init_modular 4331194
monomial 2366055
monomialcopy 7308101
pol_x_powers 19397
primelist_disc 752260
residual_characteristic 2324
swap_vars 5369
trivial_case 951469

Generated by: LCOV version 1.9