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.0 lcov report (development 29815-a300ec5c34) Lines: 1349 1477 91.3 %
Date: 2024-12-26 09:08:56 Functions: 141 151 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xq_ell_to_a4a6 45712
F3x_equalm1 0
F3xq_ell_to_a4a6 31451
FFC_to_raw 46074
FFM_FFC_gauss 42
FFM_FFC_invimage 63
FFM_FFC_mul 91
FFM_FFC_wrap 196
FFM_FFM_wrap 4676
FFM_deplin 84
FFM_det 63
FFM_gauss 56
FFM_image 49
FFM_indexrank 21
FFM_inv 147
FFM_invimage 105
FFM_ker 63
FFM_mul 4515
FFM_rank 70
FFM_suppl 35
FFM_to_raw 9968
FFM_wrap 294
FFV_roots_to_pol 14
FFXQ_inv 14
FFXQ_minpoly 77
FFXQ_mul 105
FFXQ_sqr 7
FFX_add 0
FFX_ddf 7
FFX_degfact 126
FFX_disc 35
FFX_extgcd 21
FFX_factor 441
FFX_factor_squarefree 7
FFX_gcd 2590
FFX_halfgcd 0
FFX_halfgcd_all 21
FFX_ispower 168
FFX_mul 105386
FFX_preimage 966
FFX_preimage_i 1029
FFX_preimagerel 168
FFX_rem 574
FFX_resultant 21
FFX_roots 103670
FFX_sqr 2548
FFX_to_raw 325768
FFX_wrap2 108571
FFX_zero 2517
FF_1 22428
FF_Frobenius 42
FF_Q_add 1337
FF_Z_Z_muldiv 3206
FF_Z_add 1357965
FF_Z_mul 2178815
FF_add 14012923
FF_charpoly 28
FF_conjvec 28
FF_div 245933
FF_ellcard 103357
FF_ellcard_SEA 14
FF_elldata 119
FF_ellgens 18116
FF_ellgroup 26117
FF_ellinit 121081
FF_elllog 91
FF_ellmul 249074
FF_ellorder 1764
FF_ellrandom 245651
FF_elltatepairing 98
FF_elltwist 27188
FF_ellweilpairing 4998
FF_equal 64386
FF_equal0 9050765
FF_equal1 25473
FF_equalm1 42
FF_f 371
FF_gen 770
FF_inv 14219
FF_ispower 210
FF_issquare 7
FF_issquareall 189
FF_log 189
FF_map 1785
FF_minpoly 154
FF_mod 166775
FF_mul 14584400
FF_mul2n 217450
FF_neg 82300
FF_neg_i 84539
FF_norm 28
FF_order 28
FF_p 56
FF_p_i 2714552
FF_pow 122
FF_primroot 406
FF_q 81676
FF_samechar 32799801
FF_samefield 32799801
FF_sqr 2956497
FF_sqrt 161
FF_sqrtn 217
FF_sub 240479
FF_to_F2xq 917033
FF_to_F2xq_i 0
FF_to_Flxq 731008
FF_to_Flxq_i 0
FF_to_FpXQ 20757
FF_to_FpXQ_i 172249
FF_trace 28
FF_var 84
FF_zero 6024
Flxq_ell_to_a4a6 73762
FpXQ_ell_to_a4a6 1726
Fp_cmp_1 0
FqC_to_FFC 3731
FqC_to_FpXQC 4507
FqM_to_FFM 1715
FqM_to_FpXQM 497
FqV_to_FpXQV 1904
FqX_to_FFX 0
Fq_to_FF 143570
RgC_is_FFC 0
RgM_is_FFM 0
Rg_is_FF 0
Rg_to_raw 2284267
Tp_to_FF 8050
Z_FF_div 497
Z_to_raw 431368
_checkFF 29083924
_getFF 37877703
_initFF 36350010
_mkFF 36122001
_mkFF_i 3413049
ffgen 3304
fflog 189
fforder 35
ffprimroot 406
ffrandom 187901
gc_gcdext 21
mkFF_i 3184940
p_to_FF 9548
rawFq_to_FF 670832
raw_to_FFC 125454
raw_to_FFM 4851
raw_to_FFX 110940
raw_to_FFXC 49
raw_to_FFXM 21
raw_to_FFX_fact 448
to_FFE 515312
to_FFE_vec 18116

Generated by: LCOV version 1.16