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 to exceed 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.12.0 lcov report (development 23008-54b2e2f01) Lines: 1068 1126 94.8 %
Date: 2018-09-20 05:37:46 Functions: 129 135 95.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3x_equalm1 0
FFXQ_sqr 0
FF_to_F2xq_i 0
FF_to_Flxq_i 0
Fp_cmp_1 0
FqX_to_FFX 0
FFX_ddf 7
FFX_factor_squarefree 7
FF_issquare 7
raw_to_FFXC 7
FFXQ_inv 14
FFXQ_mul 14
FF_ellcard_SEA 14
FFM_indexrank 21
FF_charpoly 28
FF_conjvec 28
FF_norm 28
FF_order 28
FF_trace 28
fforder 28
FFM_suppl 35
FF_Frobenius 42
FF_equalm1 42
FFM_image 49
FFM_FFC_gauss 56
FF_p 56
FFM_FFC_invimage 63
FFM_det 63
FFM_gauss 63
FFM_rank 63
FF_sqrt 70
FFM_FFC_mul 77
FFM_ker 77
FF_pow 80
FFM_deplin 84
FF_elllog 91
FF_elltatepairing 91
FFM_invimage 105
FF_elldata 119
FFX_degfact 126
FFM_inv 147
FF_minpoly 154
FFX_ispower 168
FF_issquareall 182
FF_log 182
fflog 182
FFM_FFC_wrap 196
FF_ispower 203
FF_sqrtn 217
Z_FF_div 259
FFM_wrap 308
FF_f 364
FqM_to_FpXQM 390
FF_primroot 392
ffprimroot 392
FFX_factor 441
raw_to_FFX_fact 448
FF_gen 469
FFX_preimage 966
FF_Q_add 1344
FF_map 1687
FpXQ_ell_to_a4a6 1711
FqV_to_FpXQV 1744
FF_ellorder 1750
FqC_to_FpXQC 2206
FFX_sqr 2261
ffgen 2372
FFX_rem 2415
FFX_zero 2468
p_to_FF 2989
FFM_mul 3948
FFM_FFM_wrap 4116
Tp_to_FF 4179
raw_to_FFM 4298
FF_Z_Z_muldiv 4823
FF_ellweilpairing 4984
FF_zero 5940
FF_inv 7680
FFM_to_raw 8932
FF_equal1 15708
FF_1 16443
FF_to_FpXQ 17946
FF_ellgens 18109
to_FFE_vec 18109
FF_ellgroup 19432
F3xq_ell_to_a4a6 24710
FF_elltwist 27188
FFC_to_raw 28308
FF_neg 34161
F2xq_ell_to_a4a6 45669
FF_equal 53991
FF_q 54481
Flxq_ell_to_a4a6 66812
FF_neg_i 85050
FF_ellcard 95677
FFX_mul 101760
FFX_roots 103649
FFX_wrap2 104189
raw_to_FFX 105809
FF_ellinit 114073
raw_to_FFC 115794
Fq_to_FF 131761
ffrandom 144438
FF_mod 165543
FF_to_FpXQ_i 170814
FF_mul2n 216868
FF_div 234480
FF_ellrandom 244314
FF_ellmul 247702
FF_sub 282793
FFX_to_raw 315954
Z_to_raw 429331
to_FFE 512575
rawFq_to_FF 632731
FF_to_Flxq 726168
FF_to_F2xq 918735
FF_Z_add 1657870
Rg_to_raw 1791089
FF_p_i 2145941
FF_Z_mul 2236389
mkFF_i 2813887
FF_sqr 2892219
_mkFF_i 3030698
FF_equal0 8928876
FF_add 9194374
FF_mul 9577464
RgM_is_FFM 11427678
RgC_is_FFC 11428189
Rg_is_FF 11435609
_checkFF 19289293
FF_samechar 22046205
FF_samefield 22046205
_mkFF 26516487
_initFF 26733263
_getFF 28201985

Generated by: LCOV version 1.13