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.8.0 lcov report (development 18889-ac2cbba) Lines: 911 961 94.8 %
Date: 2016-05-01 Functions: 104 108 96.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 359 443 81.0 %

Function Name Sort by function name Hit count Sort by hit count
F2xq_ell_to_a4a6 7636
F3x_equalm1 0
F3xq_ell_to_a4a6 23317
FFC_to_raw 3087
FFM_FFC_mul 21
FFM_det 21
FFM_image 21
FFM_inv 42
FFM_ker 21
FFM_mul 161
FFM_rank 21
FFM_to_raw 441
FFM_wrap 84
FFX_factor 77
FFX_init_fix_varn 77
FFX_roots 103418
FFX_to_raw 103418
FF_1 24108
FF_Q_add 1442
FF_Z_Z_muldiv 4704
FF_Z_add 1466155
FF_Z_mul 1667717
FF_add 1085421
FF_charpoly 28
FF_conjvec 28
FF_div 74837
FF_ellcard 71349
FF_ellcard_SEA 14
FF_elldata 119
FF_ellgens 16744
FF_ellgroup 18053
FF_ellinit 89648
FF_elllog 84
FF_ellmul 77280
FF_ellorder 1722
FF_ellrandom 93604
FF_elltatepairing 91
FF_elltwist 27188
FF_ellweilpairing 28
FF_equal 16363
FF_equal0 1157155
FF_equal1 8722
FF_equalm1 42
FF_f 196
FF_inv 4605
FF_ispower 287
FF_issquare 7
FF_issquareall 182
FF_log 168
FF_minpoly 28
FF_mod 164409
FF_mul 1917153
FF_mul2n 153060
FF_neg 19302
FF_neg_i 73223
FF_norm 28
FF_order 28
FF_p 56
FF_p_i 1082204
FF_pow 78
FF_primroot 301
FF_q 69622
FF_samefield 4183396
FF_sqr 2547568
FF_sqrt 70
FF_sqrtn 98
FF_sub 172837
FF_to_F2xq 113442
FF_to_F2xq_i 0
FF_to_Flxq 785337
FF_to_Flxq_i 0
FF_to_FpXQ 22393
FF_to_FpXQ_i 167321
FF_trace 28
FF_zero 3248
Flxq_ell_to_a4a6 80421
FpXQ_ell_to_a4a6 1710
Fp_cmp_1 0
FqC_to_FpXQC 63
FqM_to_FpXQM 28
FqV_to_FpXQV 1743
FqX_to_FFX 70
Fq_to_FF 1498
RgC_is_FFC 7534040
RgM_is_FFM 7532248
Rg_is_FF 7557616
Rg_to_raw 753102
Tp_to_FF 15204
Z_FF_div 322
Z_to_raw 301434
_checkFF 3250418
_getFF 10104130
_initFF 9232792
_mkFF 9158251
_mkFF_i 1631046
ffgen 1791
fflog 168
fforder 28
ffprimroot 301
ffrandom 14924
mkFF_i 1556325
p_to_FF 2583
raw_to_FFC 105091
raw_to_FFM 245
to_FFE 190169
to_FFE_vec 16744
to_FFX 364
to_FF_fact 77

Generated by: LCOV version 1.9