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 - grossenchar.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30499-74bdd0ac5b) Lines: 1033 1048 98.6 %
Date: 2025-09-18 09:23:44 Functions: 66 66 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgV_frac_inplace 24024
_check_gchar_group 13279
bestS 630
check_gchar 7084
check_gchar_group 11445
check_gchar_i 9184
check_gchari 2121
check_localstar 13265
cleanup_vga 1351
cm_select 231
col_2ei 112
compute_Lcyc 630
conductor_expo_pr 1358
embedcol 6706
eulerf_gchar 14
gaddmul 2492623
gcharDLdata 630
gchar_Sval 1911
gchar_algebraic_basis 70
gchar_algebraicnormtype 154
gchar_algebraicoftype 210
gchar_conductor 224
gchar_hnfreduce_shallow 630
gchar_identify 4011
gchar_identify_i 3941
gchar_identify_init 4011
gchar_internal 7084
gchar_log 190673
gchar_logm 192584
gchar_nflog 1911
gchar_snfbasis_shallow 630
gcharalgebraic 280
gcharduallog 1799
gchareval 3969
gchari_conductor 224
gchari_duallog 8750
gchari_eval 186886
gchari_lfun 1400
gcharinit 651
gcharisalgebraic 189
gcharisprincipal 190673
gcharlocal 497
gcharlog 70
gcharlog_conductor_f 1617
gcharlog_conductor_oo 16891
gcharlog_eval_raw 201544
gcharmat_tinverse 1575
gcharmatnewprec_shallow 1743
gcharnewprec 1834
gcharnewprec_i 1834
hnf_block 1239
is_gchar_group 8911
lfungchar 406
lll_block 733
localstar 630
mextraprec 2509
nfembedlog 197126
rowreverse 1239
safelgcols 2121
same_arg 4542
shallow_clean_rat 5041
shallowmatinsert 2326
sprk_get_ncp 2051
vaffect_shallow 4542
vec_v0 2326
vecan_gchar 707

Generated by: LCOV version 1.16