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-bordeaux1.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 17589-6eff849) Lines: 825 899 91.8 %
Date: 2015-03-05 Functions: 98 103 95.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 334 420 79.5 %

Function Name Sort by function name Hit count Sort by hit count
F2xq_ell_to_a4a6 4076
F3x_equalm1 0
F3xq_ell_to_a4a6 12817
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 70
FFX_init_fix_varn 182
FFX_roots 112
FF_1 37562
FF_Q_add 1442
FF_Z_Z_muldiv 6594
FF_Z_add 234553
FF_Z_mul 467953
FF_add 629432
FF_charpoly 28
FF_conjvec 28
FF_div 56119
FF_ellcard 28933
FF_elldata 119
FF_ellgens 16744
FF_ellgroup 18053
FF_ellinit 47154
FF_elllog 84
FF_ellmul 77259
FF_ellorder 1722
FF_ellrandom 93583
FF_elltatepairing 7
FF_ellweilpairing 7
FF_equal 8869
FF_equal0 432252
FF_equal1 12502
FF_equalm1 42
FF_f 126
FF_inv 4657
FF_ispower 210
FF_issquare 7
FF_issquareall 189
FF_log 161
FF_minpoly 28
FF_mod 164311
FF_mul 1572783
FF_mul2n 92978
FF_neg 25574
FF_neg_i 63070
FF_norm 28
FF_order 28
FF_p 56
FF_p_i 254073
FF_pow 70
FF_primroot 287
FF_q 14
FF_samefield 2557755
FF_sqr 2200419
FF_sqrt 70
FF_sqrtn 98
FF_sub 183850
FF_to_F2xq 74536
FF_to_F2xq_i 0
FF_to_Flxq 533533
FF_to_Flxq_i 0
FF_to_FpXQ 10479
FF_to_FpXQ_i 167027
FF_trace 28
FF_zero 3241
Flxq_ell_to_a4a6 42327
FpXQ_ell_to_a4a6 870
Fp_cmp_1 0
FqC_to_FpXQC 63
FqM_to_FpXQM 28
FqV_to_FpXQV 1729
RgC_is_FFC 2905603
RgM_is_FFM 2903783
Rg_is_FF 2929165
Tp_to_FF 0
Z_FF_div 308
_checkFF 2442345
_getFF 5881576
_initFF 5596831
_mkFF 5533038
_mkFF_i 917579
ffgen 1612
fflog 161
fforder 28
ffprimroot 287
ffrandom 14917
mkFF_i 853669
p_to_FF 2541
raw_to_FFC 1673
raw_to_FFM 245
to_FF 840
to_FFC 112
to_FFE 190127
to_FFE_vec 16744
to_FFX 322
to_FF_fact 70

Generated by: LCOV version 1.9