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 20291-5fbfea9) Lines: 417 443 94.1 %
Date: 2017-02-25 05:49:34 Functions: 54 57 94.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 6903
F2xqE_Miller 574
F2xqE_Miller_add 574
F2xqE_Miller_dbl 581
F2xqE_Miller_line 616
F2xqE_add 350679
F2xqE_add_slope 350714
F2xqE_changepoint 336259
F2xqE_changepointinv 165018
F2xqE_chord_update 574
F2xqE_dbl 1041173
F2xqE_dbl_slope 1043294
F2xqE_log 42
F2xqE_mul 164584
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 581
F2xqE_tatepairing 28
F2xqE_vert 1694
F2xqE_weilpairing 350
F2xq_ellcard 45137
F2xq_ellgens 3584
F2xq_ellgroup 3654
F2xq_elltrace_Harley 7323
F2xq_elltracej 37716
F2xq_elltwist 3514
RgE_to_F2xqE 165018
Z2XQ_frob 14996
Z2XQ_invnorm 6903
Z2XQ_invnorm_pcyc 238
Z2x_rshift 37140
Z2xq_frob 18728
_F2xqE_add 350679
_F2xqE_dbl 1041173
_F2xqE_mul 193046
_F2xqE_pairorder 343
_F2xqE_rand 13594
_can_invd 14713
_can_invls 33146
_can_iter 14713
_can_lin 10
_can_lins 18426
_frob_invls 33725
_frob_lin 10
_frob_lins 18729
_lift_invd 14986
_lift_iter 14986
gen_Z2X_Dixon 29739
gen_Z2x_Dixon 104027
get_F2xqE_group 0
get_r 10290
get_v 23688
nonzerotrace_F2xq 3514
random_F2xqE 181594
solve_AGM_eqn 7141

Generated by: LCOV version 1.11