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.16.2 lcov report (development 29115-f22e516b23) Lines: 1034 1049 98.6 %
Date: 2024-03-28 08:06:56 Functions: 66 66 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
eulerf_gchar 14
gchar_algebraic_basis 70
gcharlog 70
col_2ei 112
gchar_algebraicnormtype 154
gcharisalgebraic 189
gchar_algebraicoftype 210
cm_select 224
gchar_conductor 224
gchari_conductor 224
gcharalgebraic 280
lfungchar 392
gcharlocal 497
bestS 623
compute_Lcyc 623
gcharDLdata 623
gchar_hnfreduce_shallow 623
gchar_snfbasis_shallow 623
localstar 623
gcharinit 644
vecan_gchar 693
lll_block 726
hnf_block 1211
rowreverse 1211
cleanup_vga 1323
conductor_expo_pr 1330
gchari_lfun 1372
gcharmat_tinverse 1573
gcharlog_conductor_f 1589
gcharduallog 1799
gcharnewprec 1806
gcharnewprec_i 1806
gcharmatnewprec_shallow 1877
gchar_Sval 1904
gchar_nflog 1904
sprk_get_ncp 2016
check_gchari 2079
safelgcols 2079
is_gchar_group 2296
shallowmatinsert 2453
vec_v0 2453
mextraprec 2662
gchar_identify_i 3941
gchareval 3969
gchar_identify 4011
gchar_identify_init 4011
same_arg 4678
vaffect_shallow 4678
shallow_clean_rat 5050
embedcol 6657
check_gchar 7070
gchar_internal 7070
gchari_duallog 8708
check_gchar_i 9128
check_gchar_group 11431
check_localstar 13223
_check_gchar_group 13237
gcharlog_conductor_oo 16863
RgV_frac_inplace 23982
gchari_eval 184681
gchar_log 188468
gcharisprincipal 188468
gchar_logm 190372
nfembedlog 195050
gcharlog_eval_raw 199339
gaddmul 2476278

Generated by: LCOV version 1.14