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.18.0 lcov report (development 29821-ad8e616c7c) Lines: 419 447 93.7 %
Date: 2024-12-28 09:09:04 Functions: 55 58 94.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2x_Teichmuller 7178
F2xqE_Miller 9086
F2xqE_Miller_add 9086
F2xqE_Miller_dbl 16863
F2xqE_Miller_line 16898
F2xqE_add 350952
F2xqE_add_slope 350987
F2xqE_changepoint 355614
F2xqE_changepointinv 194432
F2xqE_chord_update 9086
F2xqE_dbl 1042034
F2xqE_dbl_slope 1060318
F2xqE_log 42
F2xqE_mul 184072
F2xqE_neg 84
F2xqE_neg_i 0
F2xqE_order 280
F2xqE_sub 0
F2xqE_tangent_update 16863
F2xqE_tatepairing 28
F2xqE_vert 35000
F2xqE_weilpairing 5355
F2xq_ellcard 45454
F2xq_ellgens 3738
F2xq_ellgroup 3808
F2xq_elltrace_Harley 7647
F2xq_elltracej 37653
F2xq_elltwist 3514
RgE_to_F2xqE 194432
Z2XQ_frob 16603
Z2XQ_invnorm 7171
Z2XQ_invnorm_pcyc 238
Z2x_rshift 67722
Z2xq_frob 34006
_F2xqE_add 350952
_F2xqE_dbl 1042034
_F2xqE_mul 213094
_F2xqE_pairorder 385
_F2xqE_rand 13433
_can_invd 16346
_can_invls 50090
_can_iter 16348
_can_lin 10
_can_lins 33733
_frob_invls 50605
_frob_lin 10
_frob_lins 34006
_lift_invd 16594
_lift_iter 16594
gen_Z2X_Dixon 32983
gen_Z2x_Dixon 168389
get_F2xqE_group 0
get_r 10073
get_v 23870
is_2_torsion 19271
nonzerotrace_F2xq 3514
random_F2xqE 181153
solve_AGM_eqn 7409

Generated by: LCOV version 1.16