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 21188-db834f2) Lines: 1033 1089 94.9 %
Date: 2017-10-20 06:23:07 Functions: 124 129 96.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xq_ell_to_a4a6 45662
F3x_equalm1 0
F3xq_ell_to_a4a6 23534
FFC_to_raw 9086
FFM_FFC_gauss 56
FFM_FFC_invimage 63
FFM_FFC_mul 77
FFM_FFC_wrap 196
FFM_FFM_wrap 280
FFM_deplin 63
FFM_det 35
FFM_gauss 42
FFM_image 35
FFM_indexrank 21
FFM_inv 126
FFM_invimage 42
FFM_ker 56
FFM_mul 196
FFM_rank 42
FFM_suppl 21
FFM_to_raw 1120
FFM_wrap 238
FFXQ_inv 14
FFX_factor 336
FFX_ispower 147
FFX_mul 100808
FFX_preimage 504
FFX_rem 2303
FFX_roots 103544
FFX_sqr 2254
FFX_to_raw 313035
FFX_wrap2 103125
FFX_zero 2335
FF_1 16044
FF_Frobenius 21
FF_Q_add 1344
FF_Z_Z_muldiv 4655
FF_Z_add 1652508
FF_Z_mul 1830906
FF_add 8834658
FF_charpoly 28
FF_conjvec 28
FF_div 123137
FF_ellcard 94543
FF_ellcard_SEA 14
FF_elldata 119
FF_ellgens 16772
FF_ellgroup 18081
FF_ellinit 112848
FF_elllog 91
FF_ellmul 247450
FF_ellorder 1750
FF_ellrandom 244034
FF_elltatepairing 91
FF_elltwist 27188
FF_ellweilpairing 4984
FF_equal 31934
FF_equal0 8801181
FF_equal1 15127
FF_equalm1 42
FF_f 280
FF_gen 231
FF_inv 6392
FF_ispower 196
FF_issquare 7
FF_issquareall 175
FF_log 175
FF_map 868
FF_minpoly 91
FF_mod 164885
FF_mul 9448846
FF_mul2n 216035
FF_neg 31963
FF_neg_i 84861
FF_norm 28
FF_order 28
FF_p 56
FF_p_i 1855294
FF_pow 79
FF_primroot 385
FF_q 54474
FF_samechar 21002518
FF_samefield 21002518
FF_sqr 2778052
FF_sqrt 70
FF_sqrtn 105
FF_sub 275331
FF_to_F2xq 963725
FF_to_F2xq_i 0
FF_to_Flxq 786758
FF_to_Flxq_i 0
FF_to_FpXQ 19586
FF_to_FpXQ_i 169848
FF_trace 28
FF_zero 5737
Flxq_ell_to_a4a6 65595
FpXQ_ell_to_a4a6 1710
Fp_cmp_1 0
FqC_to_FpXQC 281
FqM_to_FpXQM 75
FqV_to_FpXQV 1743
FqX_to_FFX 0
Fq_to_FF 154
RgC_is_FFC 10055721
RgM_is_FFM 10048173
Rg_is_FF 10174684
Rg_to_raw 1511922
Tp_to_FF 350
Z_FF_div 259
Z_to_raw 414757
_checkFF 18682147
_getFF 26899747
_initFF 25456694
_mkFF 25371626
_mkFF_i 2936433
ffgen 2441
fflog 175
fforder 28
ffprimroot 385
ffrandom 138474
mkFF_i 2851420
p_to_FF 2891
rawFq_to_FF 623155
raw_to_FFC 107009
raw_to_FFM 462
raw_to_FFX 104661
raw_to_FFX_fact 336
to_FFE 510762
to_FFE_vec 16772

Generated by: LCOV version 1.11