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 - F2xqE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 420 446 94.2 %
Date: 2017-04-28 05:33:48 Functions: 55 58 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 5952
F2xqE_Miller 8244
F2xqE_Miller_add 8244
F2xqE_Miller_dbl 15198
F2xqE_Miller_line 15228
F2xqE_add 303606
F2xqE_add_slope 303636
F2xqE_changepoint 305190
F2xqE_changepointinv 166884
F2xqE_chord_update 8244
F2xqE_dbl 905118
F2xqE_dbl_slope 921636
F2xqE_log 36
F2xqE_mul 158016
F2xqE_neg 72
F2xqE_neg_i 0
F2xqE_order 240
F2xqE_sub 0
F2xqE_tangent_update 15198
F2xqE_tatepairing 24
F2xqE_vert 31656
F2xqE_weilpairing 4572
F2xq_ellcard 38737
F2xq_ellgens 3084
F2xq_ellgroup 3144
F2xq_elltrace_Harley 6313
F2xq_elltracej 32340
F2xq_elltwist 3012
RgE_to_F2xqE 166884
Z2XQ_frob 13074
Z2XQ_invnorm 5954
Z2XQ_invnorm_pcyc 204
Z2x_rshift 36070
Z2xq_frob 18173
_F2xqE_add 303606
_F2xqE_dbl 905118
_F2xqE_mul 182484
_F2xqE_pairorder 318
_F2xqE_rand 11700
_can_invd 12834
_can_invls 30749
_can_iter 12831
_can_lin 6
_can_lins 17906
_frob_invls 31244
_frob_lin 6
_frob_lins 18171
_lift_invd 13068
_lift_iter 13068
gen_Z2X_Dixon 25924
gen_Z2x_Dixon 98064
get_F2xqE_group 0
get_r 8832
get_v 20316
is_2_torsion 18942
nonzerotrace_F2xq 3012
random_F2xqE 155700
solve_AGM_eqn 6158

Generated by: LCOV version 1.11