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 - F2xqE.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17953-c39f2e6) Lines: 383 408 93.9 %
Date: 2015-08-28 Functions: 50 53 94.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 125 155 80.6 %

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 6910
F2xqE_Miller 482
F2xqE_Miller_add 482
F2xqE_Miller_dbl 482
F2xqE_add 74636
F2xqE_add_slope 74657
F2xqE_changepoint 35525
F2xqE_changepointinv 14609
F2xqE_chord_update 482
F2xqE_dbl 228857
F2xqE_dbl_slope 229528
F2xqE_log 42
F2xqE_mul 14217
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 482
F2xqE_tatepairing 7
F2xqE_vert 1425
F2xqE_weilpairing 347
F2xq_ellcard 7386
F2xq_ellgens 3584
F2xq_ellgroup 3654
F2xq_elltrace_Harley 7330
F2xq_elltwist 3514
RgE_to_F2xqE 14609
Z2XQ_frob 15038
Z2XQ_invnorm 6910
Z2XQ_invnorm_pcyc 238
Z2x_rshift 37917
Z2xq_frob 19124
_F2xqE_add 74636
_F2xqE_dbl 228857
_F2xqE_mul 42795
_F2xqE_pairorder 340
_F2xqE_rand 13637
_can_invd 14755
_can_invls 33574
_can_iter 14755
_can_lin 10
_can_lins 18820
_frob_invls 34158
_frob_lin 10
_frob_lins 19119
_lift_invd 15027
_lift_iter 15028
gen_Z2X_Dixon 29818
gen_Z2x_Dixon 105674
get_F2xqE_group 0
nonzerotrace_F2xq 3514
random_F2xqE 31270
solve_AGM_eqn 7148

Generated by: LCOV version 1.9