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 18591-61b65cc) Lines: 868 932 93.1 %
Date: 2016-02-10 Functions: 101 105 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 344 430 80.0 %

Function Name Sort by function name Hit count Sort by hit count
Rg_is_FF 7124792
RgC_is_FFC 7101216
RgM_is_FFM 7099403
_getFF 6411310
_initFF 5946355
_mkFF 5872543
FF_samefield 2435533
_checkFF 2311241
FF_sqr 2280778
_mkFF_i 1527221
FF_mul 1504561
mkFF_i 1453312
FF_to_Flxq 784749
FF_Z_mul 687882
FF_add 560313
FF_equal0 411807
FF_Z_add 380954
FF_p_i 321756
to_FFE 190127
FF_sub 171389
FF_to_FpXQ_i 167027
FF_mod 164318
FF_mul2n 145223
FF_to_F2xq 113186
FF_ellrandom 93583
FF_ellinit 89098
Flxq_ell_to_a4a6 79889
FF_ellmul 77259
FF_div 74809
FF_neg_i 73066
FF_ellcard 70870
FF_q 69139
FF_elltwist 27188
F3xq_ell_to_a4a6 23289
FF_to_FpXQ 19747
FF_neg 19302
FF_ellgroup 18053
FF_1 17451
FF_ellgens 16744
to_FFE_vec 16744
ffrandom 14924
Tp_to_FF 14721
FF_equal1 8281
FF_equal 7665
F2xq_ell_to_a4a6 7618
FF_Z_Z_muldiv 4704
FF_inv 4600
FF_zero 3241
FFC_to_raw 3087
p_to_FF 2569
FqV_to_FpXQV 1729
FF_ellorder 1722
FpXQ_ell_to_a4a6 1710
raw_to_FFC 1673
ffgen 1639
FF_Q_add 1442
to_FF 840
FFM_to_raw 441
Z_FF_div 322
to_FFX 322
FF_primroot 301
ffprimroot 301
raw_to_FFM 245
FF_ispower 203
FFX_init_fix_varn 182
FF_issquareall 182
fflog 168
FF_log 168
FFM_mul 161
FF_f 126
FF_elldata 119
to_FFC 112
FFX_roots 112
FF_sqrtn 98
FF_elllog 84
FFM_wrap 84
FF_pow 71
FF_sqrt 70
FFX_factor 70
to_FF_fact 70
FqC_to_FpXQC 63
FF_p 56
FFM_inv 42
FF_equalm1 42
FF_norm 28
FF_conjvec 28
FF_order 28
FF_charpoly 28
fforder 28
FF_minpoly 28
FqM_to_FpXQM 28
FF_trace 28
FFM_rank 21
FFM_ker 21
FFM_det 21
FFM_FFC_mul 21
FFM_image 21
FF_ellcard_SEA 14
FF_elltatepairing 7
FF_issquare 7
FF_ellweilpairing 7
Fp_cmp_1 0
F3x_equalm1 0
FF_to_Flxq_i 0
FF_to_F2xq_i 0

Generated by: LCOV version 1.9