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 - FF.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19352-1b11b25) Lines: 911 961 94.8 %
Date: 2016-08-25 06:11:27 Functions: 104 108 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3x_equalm1 0
FF_to_F2xq_i 0
FF_to_Flxq_i 0
Fp_cmp_1 0
FF_issquare 7
FF_ellcard_SEA 14
FFM_det 21
FFM_image 21
FFM_rank 21
FFM_FFC_mul 28
FF_charpoly 28
FF_conjvec 28
FF_ellweilpairing 28
FF_minpoly 28
FF_norm 28
FF_order 28
FF_trace 28
FqM_to_FpXQM 28
fforder 28
FFM_ker 35
FFM_inv 42
FF_equalm1 42
FF_p 56
FqC_to_FpXQC 63
FF_sqrt 70
FqX_to_FFX 70
FFX_factor 77
FFX_init_fix_varn 77
to_FF_fact 77
FF_pow 78
FF_elllog 84
FF_elltatepairing 91
FFM_wrap 98
FF_sqrtn 105
FF_elldata 119
FFM_mul 161
FF_log 168
fflog 168
FF_issquareall 182
FF_f 196
raw_to_FFM 259
FF_ispower 287
FF_primroot 322
Z_FF_div 322
ffprimroot 322
to_FFX 364
Tp_to_FF 399
FFM_to_raw 462
FF_Q_add 1442
Fq_to_FF 1652
FpXQ_ell_to_a4a6 1710
FF_ellorder 1722
FqV_to_FpXQV 1743
ffgen 1849
p_to_FF 2919
FFC_to_raw 3136
FF_zero 3227
FF_inv 4635
FF_Z_Z_muldiv 4725
F2xq_ell_to_a4a6 7771
FF_equal1 9114
ffrandom 15204
FF_equal 16580
FF_ellgens 16744
to_FFE_vec 16744
FF_ellgroup 18053
FF_neg 20255
FF_to_FpXQ 22673
F3xq_ell_to_a4a6 23590
FF_1 24500
FF_elltwist 27188
FF_q 54460
FF_ellcard 56694
Flxq_ell_to_a4a6 65630
FF_ellinit 74992
FF_div 75096
FF_ellmul 77280
FF_neg_i 83107
FF_ellrandom 93604
FFX_roots 103439
FFX_to_raw 103439
raw_to_FFC 105126
FF_to_F2xq 113505
FF_mul2n 153280
FF_mod 164479
FF_to_FpXQ_i 167461
to_FFE 190169
Z_to_raw 301455
FF_sub 417816
Rg_to_raw 762923
FF_to_Flxq 786457
FF_p_i 1077174
mkFF_i 1375616
_mkFF_i 1460382
FF_Z_add 1491683
FF_Z_mul 1730303
FF_sqr 2623067
FF_equal0 8849214
RgM_is_FFM 9022561
RgC_is_FFC 9024374
Rg_is_FF 9047999
FF_add 10102682
FF_mul 10550954
_checkFF 21146716
FF_samefield 22099399
_mkFF 27219951
_initFF 27304643
_getFF 28131569

Generated by: LCOV version 1.11