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.8.0 lcov report (development 18886-5652b70) Lines: 402 427 94.1 %
Date: 2016-04-29 Functions: 51 54 94.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 135 163 82.8 %

Function Name Sort by function name Hit count Sort by hit count
F2x_canonlift 6913
F2xqE_Miller 578
F2xqE_Miller_add 578
F2xqE_Miller_dbl 585
F2xqE_Miller_line 620
F2xqE_add 74540
F2xqE_add_slope 74575
F2xqE_changepoint 35539
F2xqE_changepointinv 14658
F2xqE_chord_update 578
F2xqE_dbl 228541
F2xqE_dbl_slope 229315
F2xqE_log 42
F2xqE_mul 14224
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 585
F2xqE_tatepairing 28
F2xqE_vert 1706
F2xqE_weilpairing 352
F2xq_ellcard 7418
F2xq_ellgens 3584
F2xq_ellgroup 3654
F2xq_elltrace_Harley 7334
F2xq_elltwist 3514
RgE_to_F2xqE 14658
Z2XQ_frob 15062
Z2XQ_invnorm 6914
Z2XQ_invnorm_pcyc 238
Z2x_rshift 38388
Z2xq_frob 19354
_F2xqE_add 74540
_F2xqE_dbl 228541
_F2xqE_mul 42805
_F2xqE_pairorder 345
_F2xqE_rand 13642
_can_invd 14777
_can_invls 33836
_can_iter 14775
_can_lin 10
_can_lins 19051
_frob_invls 34413
_frob_lin 10
_frob_lins 19355
_lift_invd 15052
_lift_iter 15052
gen_Z2X_Dixon 29870
gen_Z2x_Dixon 106658
get_F2xqE_group 0
nonzerotrace_F2xq 3514
random_F2xqE 31282
solve_AGM_eqn 7152

Generated by: LCOV version 1.9