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 17110-9967e23) Lines: 365 387 94.3 %
Date: 2014-11-26 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 2400
F2xqE_Miller 360
F2xqE_Miller_add 360
F2xqE_Miller_dbl 360
F2xqE_add 52789
F2xqE_add_slope 52804
F2xqE_changepoint 25375
F2xqE_changepointinv 10435
F2xqE_chord_update 360
F2xqE_dbl 163277
F2xqE_dbl_slope 163741
F2xqE_log 30
F2xqE_mul 10155
F2xqE_neg 60
F2xqE_neg_i 0
F2xqE_order 200
F2xqE_sub 0
F2xqE_tangent_update 360
F2xqE_tatepairing 5
F2xqE_vert 1065
F2xqE_weilpairing 252
F2xq_ellcard 2610
F2xq_ellgens 2560
F2xq_ellgroup 2610
F2xq_elltrace_Harley 2570
RgE_to_F2xqE 10435
Z2XQ_frob 4973
Z2XQ_invnorm 2400
Z2XQ_invnorm_pcyc 95
Z2x_rshift 5539
Z2xq_frob 2877
_F2xqE_add 52789
_F2xqE_dbl 163277
_F2xqE_mul 29936
_F2xqE_pairorder 247
_F2xqE_rand 9604
_can_invd 4845
_can_invls 7515
_can_iter 4845
_can_lin 8
_can_lins 2662
_frob_invls 7850
_frob_lin 8
_frob_lins 2877
_lift_invd 4965
_lift_iter 4965
gen_Z2X_Dixon 9842
gen_Z2x_Dixon 20904
get_F2xqE_group 0
random_F2xqE 22199
solve_AGM_eqn 2495

Generated by: LCOV version 1.9