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 18890-99e9e62) Lines: 1438 1672 86.0 %
Date: 2016-05-02 Functions: 132 149 88.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 799 1157 69.1 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 33197954
Flm_Frobenius 2226
Flm_Frobenius_pow 0
FlxX_pseudorem 4483
FlxX_resultant 1479
FlxY_evalx_drop 8635
FlxY_to_FlyX 1581
Flx_FlxY_eval_resultant 333000
Flx_FlxY_resultant 1580
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
FpV_polint 1
FpXQV_FpX_Frobenius 28
FpXQX_normalize 6749
FpXQ_ffisom_inv 1253
FpXV_FpC_mul 844774
FpXY_Fq_evaly 17836
FpX_FpXY_eval_resultant 4
FpX_FpXY_resultant 1560
FpX_compositum 0
FpX_direct_compositum 413
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 8681
FqX_Fq_mul_to_monic 3628
FqX_eval 118839
FqX_translate 39921
Fq_Fp_mul 26128
Fq_add 6862953
Fq_div 420546
Fq_halve 10987
Fq_inv 36503
Fq_invsafe 0
Fq_mul 41970391
Fq_mulu 555877
Fq_neg 224828
Fq_neg_inv 0
Fq_pow 11795
Fq_powu 10647
Fq_sqr 66147
Fq_sqrt 5667
Fq_sqrtn 1085
Fq_sub 3066036
QXQ_charpoly 46781
QXQ_intnorm 0
QXQ_inv 133925
QXQ_norm 0
QX_disc 0
QX_resultant 10755
RgC_to_FpC 607977
RgM_is_FpM 719610
RgM_to_Flm 1768
RgM_to_FpM 44663
RgV_is_FpV 1693621
RgV_to_Flv 12615
RgV_to_FpV 1099
RgX_is_FpX 2346357
RgX_is_FpXQX 35826
RgX_to_FpX 140266
RgX_to_FpXQX 266
RgX_to_FqX 595
Rg_is_Fp 16295440
Rg_is_FpXQ 94941
Rg_to_Fp 27043165
Rg_to_FpXQ 45704
ZM_incremental_CRT 171651
ZM_init_CRT 102951
ZXQ_charpoly 56812
ZXQ_charpoly_sqf 2254
ZX_ZXY_ResBound 473198
ZX_ZXY_resultant_all 4179
ZX_ZXY_rnfequation 2485
ZX_disc 24320
ZX_disc_all 26469
ZX_incremental_CRT 3123607
ZX_incremental_CRT_raw 3413454
ZX_init_CRT 3116766
ZX_norml1 5950
ZX_resultant 23939
ZX_resultant_all 475783
ZX_resultant_prime 863580
ZX_resultant_slice 752192
ZX_resultant_worker 368333
Z_incremental_CRT 221258
Z_init_CRT 17220
_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 276
ffinit 119
ffinit_Artin_Shreier 0
ffinit_fact 2651
ffinit_nofact 96
ffinit_rand 0
ffnbirred 3178
ffnbirred0 140
ffsumnbirred 427
fp_resultant 42
fpinit 2884
fpinit_check 11196
get_Fq_field 217
get_nbprimes 473345
init_Fq 3293
init_Fq_i 3413
init_modular 4330599
monomial 2372994
monomialcopy 7308094
pol_comp 2
pol_x_powers 19397
polint_triv 0
primelist_disc 752241
residual_characteristic 2324
swap_vars 5369
trivial_case 951511

Generated by: LCOV version 1.9