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 16912-212c0f0) Lines: 365 387 94.3 %
Date: 2014-10-20 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 3360
F2xqE_Miller 505
F2xqE_Miller_add 505
F2xqE_Miller_dbl 505
F2xqE_add 73516
F2xqE_add_slope 73537
F2xqE_changepoint 35525
F2xqE_changepointinv 14609
F2xqE_chord_update 505
F2xqE_dbl 227454
F2xqE_dbl_slope 228097
F2xqE_log 42
F2xqE_mul 14217
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 505
F2xqE_tatepairing 7
F2xqE_vert 1494
F2xqE_weilpairing 388
F2xq_ellcard 3654
F2xq_ellgens 3584
F2xq_ellgroup 3654
F2xq_elltrace_Harley 3598
RgE_to_F2xqE 14609
Z2XQ_frob 6961
Z2XQ_invnorm 3360
Z2XQ_invnorm_pcyc 133
Z2x_rshift 7757
Z2xq_frob 4029
_F2xqE_add 73516
_F2xqE_dbl 227454
_F2xqE_mul 42543
_F2xqE_pairorder 381
_F2xqE_rand 13448
_can_invd 6783
_can_invls 10521
_can_iter 6783
_can_lin 10
_can_lins 3728
_frob_invls 10990
_frob_lin 10
_frob_lins 4029
_lift_invd 6951
_lift_iter 6951
gen_Z2X_Dixon 13774
gen_Z2x_Dixon 29268
get_F2xqE_group 0
random_F2xqE 31081
solve_AGM_eqn 3493

Generated by: LCOV version 1.9