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 - F2xqE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23339-b1c33c51a) Lines: 420 446 94.2 %
Date: 2018-12-11 05:41:34 Functions: 55 58 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xqE_neg_i 0
F2xqE_sub 0
get_F2xqE_group 0
_can_lin 10
_frob_lin 10
F2xqE_tatepairing 28
F2xqE_log 42
F2xqE_neg 84
Z2XQ_invnorm_pcyc 238
F2xqE_order 280
_F2xqE_pairorder 371
F2xq_elltwist 3514
nonzerotrace_F2xq 3514
F2xq_ellgens 3738
F2xq_ellgroup 3808
F2xqE_weilpairing 5334
Z2XQ_invnorm 6998
F2x_Teichmuller 7005
solve_AGM_eqn 7236
F2xq_elltrace_Harley 7474
F2xqE_Miller 9618
F2xqE_Miller_add 9618
F2xqE_chord_update 9618
get_r 10087
_F2xqE_rand 13769
_can_iter 15309
_can_invd 15311
_lift_iter 15554
_lift_invd 15556
Z2XQ_frob 15566
F2xqE_Miller_dbl 17731
F2xqE_tangent_update 17731
F2xqE_Miller_line 17766
is_2_torsion 22099
get_v 23639
_can_lins 23863
Z2xq_frob 24127
_frob_lins 24132
gen_Z2X_Dixon 30906
F2xqE_vert 36932
F2xq_elltracej 37765
_can_invls 39167
_frob_invls 39691
F2xq_ellcard 45407
Z2x_rshift 47969
gen_Z2x_Dixon 126832
random_F2xqE 182021
F2xqE_mul 184604
F2xqE_changepointinv 194950
RgE_to_F2xqE 194950
_F2xqE_mul 213297
F2xqE_add 354599
_F2xqE_add 354599
F2xqE_add_slope 354634
F2xqE_changepoint 356678
F2xqE_dbl 1056951
_F2xqE_dbl 1056951
F2xqE_dbl_slope 1076173

Generated by: LCOV version 1.13