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 16624-25b9976) Lines: 347 387 89.7 %
Date: 2014-06-24 Functions: 46 51 90.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 119 149 79.9 %

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 2395
F2xqE_Miller 336
F2xqE_Miller_add 336
F2xqE_Miller_dbl 336
F2xqE_add 46834
F2xqE_add_slope 46849
F2xqE_changepoint 25355
F2xqE_changepointinv 10415
F2xqE_chord_update 336
F2xqE_dbl 136757
F2xqE_dbl_slope 137220
F2xqE_log 30
F2xqE_mul 10145
F2xqE_neg 60
F2xqE_neg_i 0
F2xqE_order 190
F2xqE_sub 0
F2xqE_tangent_update 336
F2xqE_tatepairing 5
F2xqE_vert 993
F2xqE_weilpairing 258
F2xq_ellcard 2605
F2xq_ellgens 2555
F2xq_ellgroup 2605
F2xq_elltrace_Harley 2565
RgE_to_F2xqE 10415
Z2XQ_frob 4930
Z2XQ_invnorm 2395
Z2XQ_invnorm_pcyc 95
Z2x_rshift 4355
Z2xq_frob 2285
_F2xqE_add 46834
_F2xqE_dbl 136757
_F2xqE_mul 30227
_F2xqE_pairorder 253
_F2xqE_rand 9633
_can_invd 4810
_can_invls 6880
_can_iter 4810
_can_lin 0
_can_lins 2070
_frob_invls 7215
_frob_lin 0
_frob_lins 2285
_lift_invd 4930
_lift_iter 4930
gen_Z2X_Dixon 9740
gen_Z2x_Dixon 18450
get_F2xqE_group 0
random_F2xqE 22223
solve_AGM_eqn 2490

Generated by: LCOV version 1.9