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.18.1 lcov report (development 30213-f9b05da6c0) Lines: 1349 1493 90.4 %
Date: 2025-04-26 09:18:30 Functions: 141 153 92.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3x_equalm1 0
FFX_add 0
FFX_halfgcd 0
FFX_nbroots 0
FF_to_F2xq_i 0
FF_to_Flxq_i 0
Fp_cmp_1 0
FqV_to_FFV 0
FqX_to_FFX 0
RgC_is_FFC 0
RgM_is_FFM 0
Rg_is_FF 0
FFXQ_sqr 7
FFX_ddf 7
FFX_factor_squarefree 7
FF_issquare 7
FFV_roots_to_pol 14
FFXQ_inv 14
FF_ellcard_SEA 14
FFM_indexrank 21
FFX_extgcd 21
FFX_halfgcd_all 21
FFX_resultant 21
gc_gcdext 21
raw_to_FFXM 21
FF_charpoly 28
FF_conjvec 28
FF_norm 28
FF_trace 28
FFM_suppl 35
FFX_disc 35
FFM_FFC_gauss 42
FF_Frobenius 42
FF_equalm1 42
FFM_image 49
raw_to_FFXC 49
FFM_gauss 56
FF_order 56
FF_p 56
FFM_FFC_invimage 63
FFM_det 63
FFM_ker 63
fforder 63
FFM_rank 70
FFXQ_minpoly 77
FFM_deplin 84
FF_var 84
FFM_FFC_mul 91
FF_elllog 91
FF_elltatepairing 98
FFM_invimage 105
FFXQ_mul 105
FF_elldata 119
FF_pow 122
FFX_degfact 126
FFM_inv 147
FF_minpoly 154
FFX_ispower 168
FFX_preimagerel 168
FF_issquareall 189
FF_log 189
fflog 189
FFM_FFC_wrap 196
FF_ispower 210
FFM_wrap 294
FF_f 371
FF_primroot 406
ffprimroot 406
FFX_factor 441
raw_to_FFX_fact 448
Z_FF_div 455
FqM_to_FpXQM 476
FFX_rem 574
FF_sqrtn 637
FF_gen 770
FFX_preimage 966
FFX_preimage_i 1029
FF_Q_add 1337
FqM_to_FFM 1715
FpXQ_ell_to_a4a6 1726
FF_ellorder 1764
FF_map 1785
FqV_to_FpXQV 1904
FFX_sqr 2499
FFX_zero 2517
FFX_gcd 2590
FF_Z_Z_muldiv 3234
FqC_to_FpXQC 3436
ffgen 3452
FqC_to_FFC 3731
FFM_mul 4494
FFM_FFM_wrap 4655
raw_to_FFM 4830
FF_ellweilpairing 4998
FF_zero 5982
FF_sqrt 7161
Tp_to_FF 8057
p_to_FF 9548
FFM_to_raw 9933
FF_inv 14064
FF_ellgens 18116
to_FFE_vec 18116
FF_to_FpXQ 20757
FF_1 22764
FF_equal1 24612
FF_ellgroup 26117
FF_elltwist 27188
F3xq_ell_to_a4a6 31458
FFC_to_raw 44205
F2xq_ell_to_a4a6 45711
FF_equal 66010
Flxq_ell_to_a4a6 73769
FF_q 81683
FF_neg 82223
FF_neg_i 84588
FF_ellcard 103363
FFX_roots 103670
FFX_mul 105127
FFX_wrap2 108312
raw_to_FFX 110632
FF_ellinit 121087
raw_to_FFC 124383
Fq_to_FF 143570
FF_mod 166775
FF_to_FpXQ_i 172242
ffrandom 184513
FF_mul2n 217428
FF_sub 240352
FF_ellrandom 245651
FF_div 246058
FF_ellmul 249074
FFX_to_raw 325201
Z_to_raw 431200
to_FFE 515312
rawFq_to_FF 668249
FF_to_Flxq 731008
FF_to_F2xq 917026
FF_Z_add 1365074
FF_Z_mul 2156183
Rg_to_raw 2217340
FF_p_i 2642115
FF_sqr 2967156
mkFF_i 3145953
_mkFF_i 3374111
FF_equal0 9044658
FF_add 13133917
FF_mul 13689058
_checkFF 27309574
FF_samechar 30888965
FF_samefield 30888965
_mkFF 34339956
_initFF 34574905
_getFF 36102146

Generated by: LCOV version 1.16