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 17842-03c132c) Lines: 367 389 94.3 %
Date: 2015-05-25 Functions: 48 51 94.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 120 149 80.5 %

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 3578
F2xqE_Miller 489
F2xqE_Miller_add 489
F2xqE_Miller_dbl 489
F2xqE_add 73600
F2xqE_add_slope 73621
F2xqE_changepoint 35525
F2xqE_changepointinv 14609
F2xqE_chord_update 489
F2xqE_dbl 227800
F2xqE_dbl_slope 228457
F2xqE_log 42
F2xqE_mul 14217
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 489
F2xqE_tatepairing 7
F2xqE_vert 1446
F2xqE_weilpairing 382
F2xq_ellcard 3873
F2xq_ellgens 3584
F2xq_ellgroup 3654
F2xq_elltrace_Harley 3817
RgE_to_F2xqE 14609
Z2XQ_frob 8275
Z2XQ_invnorm 3579
Z2XQ_invnorm_pcyc 133
Z2x_rshift 32701
Z2xq_frob 16508
_F2xqE_add 73600
_F2xqE_dbl 227800
_F2xqE_mul 42312
_F2xqE_pairorder 375
_F2xqE_rand 13357
_can_invd 8097
_can_invls 24307
_can_iter 8095
_can_lin 10
_can_lins 16200
_frob_invls 24782
_frob_lin 10
_frob_lins 16508
_lift_invd 8265
_lift_iter 8265
gen_Z2X_Dixon 16402
gen_Z2x_Dixon 81803
get_F2xqE_group 0
random_F2xqE 30990
solve_AGM_eqn 3712

Generated by: LCOV version 1.9