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

Generated by: LCOV version 1.9