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 to exceed 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.16.2 lcov report (development 29401-b333f5c7d5) Lines: 419 447 93.7 %
Date: 2024-06-19 09:03:24 Functions: 55 58 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_Teichmuller 7185
F2xqE_Miller 9058
F2xqE_Miller_add 9058
F2xqE_Miller_dbl 16835
F2xqE_Miller_line 16870
F2xqE_add 354627
F2xqE_add_slope 354662
F2xqE_changepoint 355838
F2xqE_changepointinv 194544
F2xqE_chord_update 9058
F2xqE_dbl 1054858
F2xqE_dbl_slope 1073275
F2xqE_log 42
F2xqE_mul 184184
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 16835
F2xqE_tatepairing 28
F2xqE_vert 34916
F2xqE_weilpairing 5341
F2xq_ellcard 45503
F2xq_ellgens 3738
F2xq_ellgroup 3808
F2xq_elltrace_Harley 7654
F2xq_elltracej 37695
F2xq_elltwist 3514
RgE_to_F2xqE 194544
Z2XQ_frob 16645
Z2XQ_invnorm 7178
Z2XQ_invnorm_pcyc 238
Z2x_rshift 68514
Z2xq_frob 34405
_F2xqE_add 354627
_F2xqE_dbl 1054858
_F2xqE_mul 212835
_F2xqE_pairorder 371
_F2xqE_rand 13748
_can_invd 16390
_can_invls 50535
_can_iter 16390
_can_lin 10
_can_lins 34134
_frob_invls 51047
_frob_lin 10
_frob_lins 34405
_lift_invd 16636
_lift_iter 16636
gen_Z2X_Dixon 33067
gen_Z2x_Dixon 170078
get_F2xqE_group 0
get_r 10493
get_v 23737
is_2_torsion 19187
nonzerotrace_F2xq 3514
random_F2xqE 181580
solve_AGM_eqn 7416

Generated by: LCOV version 1.16