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 - FF.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17097-9391e68) Lines: 817 896 91.2 %
Date: 2014-11-21 Functions: 98 104 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 326 415 78.6 %

Function Name Sort by function name Hit count Sort by hit count
_getFF 4066263
_initFF 3863392
_mkFF 3817814
FF_samefield 1692759
_checkFF 1628409
FF_sqr 1570330
Rg_is_FF 1519613
RgC_is_FFC 1519028
RgM_is_FFM 1518873
FF_mul 1066302
_mkFF_i 643164
mkFF_i 597510
FF_add 390224
FF_to_Flxq 381091
FF_Z_mul 320690
FF_equal0 306912
FF_p_i 181189
FF_Z_add 166789
to_FFE 135805
FF_sub 131673
FF_to_FpXQ_i 119305
FF_mod 117335
FF_ellrandom 66845
FF_mul2n 66260
FF_ellmul 55185
FF_to_F2xq 52145
FF_neg_i 45054
FF_div 40120
FF_ellinit 33515
Flxq_ell_to_a4a6 30223
FF_1 26680
FF_ellcard 20500
FF_neg 18260
FF_ellgroup 12885
FF_ellgens 11960
to_FFE_vec 11960
F3xq_ell_to_a4a6 9145
FF_equal1 8840
ffrandom 8620
FF_to_FpXQ 7374
FF_equal 6225
FF_Z_Z_muldiv 4710
FF_inv 3170
F2xq_ell_to_a4a6 2755
Fq_to_FpXQ 2552
FF_zero 2315
p_to_FF 1805
FqV_to_FpXQV 1235
FF_ellorder 1230
FF_Q_add 1030
ffgen 895
FpXQ_ell_to_a4a6 622
to_FF 600
FFC_to_raw 375
to_FFX 230
Z_FF_div 220
FF_primroot 180
ffprimroot 180
raw_to_FFC 150
FF_ispower 146
FF_issquareall 131
FFX_init_fix_varn 130
FFM_to_raw 120
fflog 90
FF_log 90
FF_f 90
FF_elldata 85
to_FFC 80
FFX_roots 80
FF_sqrtn 70
FF_elllog 60
raw_to_FFM 60
FF_sqrt 50
FFX_factor 50
to_FF_fact 50
FFM_wrap 45
FF_p 40
FF_pow 35
FqC_to_FpXQC 30
FF_norm 20
FF_conjvec 20
FF_order 20
FF_charpoly 20
fforder 20
FF_minpoly 20
FF_trace 20
FFM_rank 15
FFM_ker 15
FFM_mul 15
FFM_inv 15
FFM_det 15
FFM_FFC_mul 15
FFM_image 15
FqM_to_FpXQM 15
FF_q 10
FF_elltatepairing 5
FF_issquare 5
FF_ellweilpairing 5
Fp_cmp_1 0
FF_equalm1 0
F3x_equalm1 0
FF_to_Flxq_i 0
Tp_to_FF 0
FF_to_F2xq_i 0

Generated by: LCOV version 1.9