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 - Fle.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30786-ffec283a2b) Lines: 427 456 93.6 %
Date: 2026-04-07 09:25:56 Functions: 57 64 89.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_elldisc 0
Fl_elldisc_pre 2277223
Fl_ellj 0
Fl_ellj_to_a4a6 214535
Fl_ellptors 11438
Fl_elltwist 0
Fl_elltwist_disc 115136
FleV_add_pre_inplace 1872914
FleV_dbl_pre_inplace 14347298
FleV_mulu_pre_inplace 1119203
FleV_mulu_pre_naf_inplace 1119751
FleV_sub_pre_inplace 2195909
Fle_Miller 116189
Fle_Miller_add 31664
Fle_Miller_dbl 242545
Fle_Miller_line 125536
Fle_add 1582640
Fle_add_sinv_pre_inplace 7539974
Fle_add_slope 1594227
Fle_changepoint 16039
Fle_changepointinv 134231
Fle_chord_update 31664
Fle_dbl 515222
Fle_dbl_sinv_pre_inplace 55983962
Fle_dbl_slope 762983
Fle_log 54327
Fle_mul 28959
Fle_mulu 2234961
Fle_neg 131075
Fle_order 289680
Fle_sub 0
Fle_sub_sinv_pre_inplace 8680715
Fle_tangent_update 242545
Fle_tatepairing 16877
Fle_to_Flj 1741952
Fle_vert 392078
Fle_weilpairing 50958
FljV_factorback_pre 15322
Flj_add_indir_pre 7249538
Flj_add_pre 91255
Flj_add_pre_inplace 7149814
Flj_changepointinv_pre 153154
Flj_dbl_indir_pre 23767103
Flj_dbl_pre 4254458
Flj_dbl_pre_inplace 19542906
Flj_mulu_pre 2993896
Flj_mulu_pre_naf 4316204
Flj_neg 2527875
Flj_order_ufact 313471
Flj_to_Fle 68257
Flj_to_Fle_pre 1753514
_Fle_add 365890
_Fle_dbl 0
_Fle_mul 1753557
_Fle_rand 0
_Flj_add 91258
_Flj_mul 106545
_Flj_one 0
naf_repr 4813827
random_Fle 26390
random_Fle_pre 3949876
random_Fle_pre_indir 4479915
random_Flj_pre 530520
skipzero 72546728

Generated by: LCOV version 1.16