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 18609-ea8a867) Lines: 1440 1675 86.0 %
Date: 2016-02-13 Functions: 131 148 88.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 798 1165 68.5 %

Function Name Sort by function name Hit count Sort by hit count
Fl_chinese_coprime 31693938
Flm_Frobenius 2072
Flm_Frobenius_pow 0
Flv_polint_all 396
FlxX_pseudorem 4497
FlxX_resultant 1515
FlxY_evalx_drop 8635
FlxY_to_FlyX 1622
Flx_FlxY_eval_resultant 333130
Flx_FlxY_resultant 1614
Flx_FlxY_resultant_polint 7757
Flx_factorff_irred 1064
Flx_factorgalois 1064
Flx_ffintersect 1092
Flx_ffisom 28
Flx_intersect_ker 2072
Flx_resultant_all 7074
Flx_resultant_set_dglist 1561
FlxqV_Flx_Frobenius 2072
Flxq_ffisom_inv 28
FpM_Frobenius 28
FpM_Frobenius_pow 0
FpV_polint 1
FpXQV_FpX_Frobenius 28
FpXQ_ffisom_inv 1281
FpXV_FpC_mul 844774
FpXY_Fq_evaly 17836
FpX_FpXY_eval_resultant 4
FpX_FpXY_resultant 1590
FpX_compositum 0
FpX_direct_compositum 406
FpX_factorff_irred 2401
FpX_factorgalois 21
FpX_ffintersect 1176
FpX_ffisom 1155
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 10395
FqV_roots_to_pol 588
FqV_to_FlxV 533
FqXQ_matrix_pow 0
FqXQ_powers 0
FqXY_eval 12733
FqXY_evalx 30177
FqX_Fq_add 8667
FqX_Fq_mul_to_monic 16506
FqX_eval 119021
FqX_normalize 46291
FqX_translate 37380
Fq_Fp_mul 26572
Fq_add 6802649
Fq_div 420546
Fq_halve 11368
Fq_inv 48635
Fq_invsafe 0
Fq_mul 41667055
Fq_mulu 555933
Fq_neg 239173
Fq_neg_inv 0
Fq_pow 9940
Fq_powu 10647
Fq_sqr 66409
Fq_sqrt 6111
Fq_sqrtn 819
Fq_sub 2874639
QXQ_charpoly 45311
QXQ_intnorm 0
QXQ_inv 132462
QXQ_norm 0
QX_disc 0
QX_resultant 10748
RgC_to_Flc 12615
RgC_to_FpC 607977
RgM_is_FpM 715081
RgM_to_Flm 1768
RgM_to_FpM 44663
RgV_is_FpV 1676695
RgV_to_FpV 1071
RgX_is_FpX 2679134
RgX_is_FpXQX 33376
RgX_to_FpX 131439
RgX_to_FpXQX 70
RgX_to_FqX 532
Rg_is_Fp 16166105
Rg_is_FpXQ 69958
Rg_to_Fp 26687868
Rg_to_FpXQ 39754
ZM_incremental_CRT 171707
ZM_init_CRT 102517
ZXQ_charpoly 55440
ZXQ_charpoly_sqf 2282
ZX_ZXY_ResBound 471770
ZX_ZXY_resultant_all 4662
ZX_ZXY_rnfequation 2513
ZX_disc 24600
ZX_disc_all 26931
ZX_incremental_CRT 3123383
ZX_incremental_CRT_raw 3413230
ZX_init_CRT 3116689
ZX_norml1 5726
ZX_resultant 23932
ZX_resultant_all 474551
ZX_resultant_prime 862981
ZX_resultant_slice 751298
Z_incremental_CRT 221258
Z_init_CRT 17220
_Fq_add 610003
_Fq_equal0 24622
_Fq_inv 1182
_Fq_mul 632971
_Fq_neg 1259
_Fq_red 47750
_Fq_s 1191
char_update_int 581
char_update_prime 588
charact 541261
charact_res 30296
characteristic 4592
f2init 268
ffinit 91
ffinit_Artin_Shreier 0
ffinit_fact 2587
ffinit_nofact 89
ffinit_rand 0
ffnbirred 3178
ffnbirred0 140
ffsumnbirred 427
fp_resultant 42
fpinit 2814
fpinit_check 10866
get_Fq_field 196
get_nbprimes 472113
init_Fq 3159
init_Fq_i 3250
init_modular 4326686
monomial 2370712
monomialcopy 7309123
pol_comp 2
pol_x_powers 19614
polint_triv 0
residual_characteristic 2324
swap_vars 6307
trivial_case 949047

Generated by: LCOV version 1.9