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 16827-3d78da8) Lines: 1384 1626 85.1 %
Date: 2014-09-29 Functions: 127 144 88.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 770 1147 67.1 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 27878539
Flm_Frobenius 1946
Flm_Frobenius_pow 0
Flv_polint_all 510
FlxX_pseudorem 1463
FlxX_resultant 581
FlxY_evalx_drop 10171
FlxY_to_FlyX 3708
Flx_FlxY_eval_resultant 811586
Flx_FlxY_resultant 3708
Flx_FlyX_resultant_polint 21666
Flx_factorff_irred 609
Flx_factorgalois 609
Flx_ffintersect 637
Flx_ffisom 28
Flx_intersect_ker 1946
Flx_resultant_all 8631
Flx_resultant_set_dglist 1540
FlxqV_Flx_Frobenius 1946
Flxq_ffisom_inv 28
FpM_Frobenius 28
FpM_Frobenius_pow 0
FpV_polint 2
FpXQV_FpX_Frobenius 28
FpXQ_ffisom_inv 1246
FpXV_FpC_mul 423262
FpXY_Fq_evaly 11900
FpX_FpXY_eval_resultant 8
FpX_FpXY_resultant 3369
FpX_compositum 0
FpX_direct_compositum 392
FpX_factorff_irred 1295
FpX_factorgalois 21
FpX_ffintersect 1141
FpX_ffisom 1120
FpX_intersect_ker 1428
FpX_translate 0
FqC_Fq_mul 0
FqC_add 0
FqC_sub 0
FqC_to_FlxC 721
FqM_to_FlxM 112
FqV_red 5138
FqV_roots_to_pol 392
FqV_to_FlxV 346
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 8673
FqXY_evalx 6839
FqX_Fq_add 6226
FqX_Fq_mul_to_monic 4123
FqX_eval 39825
FqX_normalize 13650
FqX_translate 37394
Fq_Fp_mul 64540
Fq_add 3863959
Fq_div 311392
Fq_halve 7679
Fq_inv 23424
Fq_invsafe 0
Fq_mul 48491820
Fq_mulu 520178
Fq_neg 190178
Fq_neg_inv 0
Fq_pow 5663
Fq_powu 12327
Fq_sqr 33827
Fq_sqrt 371
Fq_sqrtn 714
Fq_sub 10364503
QXQ_intnorm 0
QXQ_inv 106461
QXQ_norm 0
QX_disc 0
QX_resultant 9608
RgC_to_Flc 12146
RgC_to_FpC 1784
RgM_is_FpM 707592
RgM_to_Flm 1747
RgM_to_FpM 227
RgV_is_FpV 2132912
RgV_to_FpV 1337
RgX_is_FpX 595190
RgX_is_FpXQX 28308
RgX_to_FpX 185270
RgX_to_FpXQX 14
RgX_to_FqX 511
Rg_is_Fp 18090123
Rg_is_FpXQ 55818
Rg_to_Fp 12447400
Rg_to_FpXQ 24060
ZM_incremental_CRT 140515
ZM_init_CRT 90064
ZXQ_charpoly 9926
ZXQ_charpoly_sqf 2212
ZX_ZXY_ResBound 407712
ZX_ZXY_resultant_all 3255
ZX_ZXY_rnfequation 2317
ZX_disc 21366
ZX_disc_all 22528
ZX_incremental_CRT 3136768
ZX_incremental_CRT_raw 3418109
ZX_init_CRT 3112538
ZX_norml1 2660
ZX_resultant 33012
ZX_resultant_all 410955
Z_incremental_CRT 2142981
Z_init_CRT 423994
_Fq_add 590746
_Fq_equal0 24011
_Fq_inv 1144
_Fq_mul 611776
_Fq_neg 1214
_Fq_red 45180
_Fq_s 1164
char_update_int 504
char_update_prime 532
charact 1736
charact_res 30205
characteristic 1043
f2init 49
ffinit 56
ffinit_Artin_Shreier 0
ffinit_fact 1710
ffinit_nofact 89
ffinit_rand 0
ffnbirred 1204
ffnbirred0 140
ffsumnbirred 182
fp_resultant 29
fpinit 2142
fpinit_check 8484
get_Fq_field 219
init_Fq 2219
init_Fq_i 2275
init_modular 4546225
monomial 2172764
monomialcopy 7193529
pol_comp 4
pol_x_powers 19061
polint_triv 0
residual_characteristic 2317
swap_vars 37
trivial_case 825068

Generated by: LCOV version 1.9