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.10.0 lcov report (development 20924-e159ed0) Lines: 968 1019 95.0 %
Date: 2017-08-21 06:23:16 Functions: 116 120 96.7 %
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_indexrank 21
FFM_suppl 21
FF_charpoly 28
FF_conjvec 28
FF_minpoly 28
FF_norm 28
FF_order 28
FF_trace 28
fforder 28
FFM_det 35
FFM_image 35
FFM_gauss 42
FFM_invimage 42
FFM_rank 42
FF_equalm1 42
FFM_FFC_gauss 56
FFM_ker 56
FF_p 56
FFM_FFC_invimage 63
FFM_deplin 63
FF_sqrt 70
FqX_to_FFX 70
FqM_to_FpXQM 75
FFM_FFC_mul 77
FF_pow 79
FF_elllog 91
FF_elltatepairing 91
FFX_factor 98
raw_to_FFX_fact 98
FF_sqrtn 105
FF_elldata 119
FFM_inv 126
FF_issquareall 175
FF_log 175
fflog 175
FFM_FFC_wrap 196
FFM_mul 196
FF_f 196
FFM_wrap 238
Z_FF_div 259
FFM_FFM_wrap 280
FqC_to_FpXQC 281
FF_ispower 350
Tp_to_FF 350
FF_primroot 385
ffprimroot 385
raw_to_FFM 462
Fq_to_FF 812
FFM_to_raw 1120
FF_Q_add 1386
FFX_zero 1509
FpXQ_ell_to_a4a6 1710
FqV_to_FpXQV 1743
FF_ellorder 1750
FFX_sqr 1981
ffgen 2276
p_to_FF 2891
FF_Z_Z_muldiv 4711
FF_zero 4869
FF_ellweilpairing 4984
FF_inv 6415
FFC_to_raw 9086
FF_equal1 10584
FF_ellgens 16772
to_FFE_vec 16772
FF_ellgroup 18081
FF_1 19320
FF_to_FpXQ 22491
F3xq_ell_to_a4a6 23534
FF_elltwist 27188
FF_neg 27875
FF_equal 30576
F2xq_ell_to_a4a6 45664
FF_q 54474
Flxq_ell_to_a4a6 65595
FF_neg_i 83195
FF_ellcard 94545
FFX_mul 99226
raw_to_FFX 100083
FFX_roots 103439
raw_to_FFC 106904
FF_ellinit 112850
FF_div 122255
ffrandom 138474
FF_mod 164479
FF_to_FpXQ_i 168322
FF_mul2n 216037
FF_ellrandom 244034
FF_ellmul 247450
FF_sub 262908
FFX_to_raw 303970
Z_to_raw 390943
to_FFE 510762
rawFq_to_FF 554947
FF_to_Flxq 786758
FF_to_F2xq 963739
Rg_to_raw 1411227
FF_Z_add 1650948
FF_p_i 1757744
FF_Z_mul 1832148
FF_sqr 2777842
mkFF_i 2782414
_mkFF_i 2866421
FF_equal0 8789404
FF_add 8824575
FF_mul 9434657
RgM_is_FFM 10193198
RgC_is_FFC 10200758
Rg_is_FF 10319373
_checkFF 18644570
FF_samefield 20813503
_mkFF 25330533
_initFF 25414398
_getFF 26829070

Generated by: LCOV version 1.11