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.1 lcov report (development 28676-df828f1c94) Lines: 1036 1049 98.8 %
Date: 2023-08-26 07:54:43 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 23583
_check_gchar_group 12971
bestS 623
check_gchar 6902
check_gchar_group 11193
check_gchar_i 8960
check_gchari 2079
check_localstar 12957
cleanup_vga 1323
cm_select 224
col_2ei 98
compute_Lcyc 623
conductor_expo_pr 1330
embedcol 6657
eulerf_gchar 14
gaddmul 2476278
gcharDLdata 623
gchar_Sval 1904
gchar_algebraic_basis 70
gchar_algebraicnormtype 154
gchar_algebraicoftype 210
gchar_conductor 224
gchar_hnfreduce_shallow 623
gchar_identify 3941
gchar_identify_i 3871
gchar_identify_init 3941
gchar_internal 6902
gchar_log 188440
gchar_logm 190344
gchar_nflog 1909
gchar_snfbasis_shallow 623
gcharalgebraic 280
gcharduallog 1799
gchareval 3962
gchari_conductor 224
gchari_duallog 8540
gchari_eval 184674
gchari_lfun 1372
gcharinit 644
gcharisalgebraic 189
gcharisprincipal 188440
gcharlocal 336
gcharlog 70
gcharlog_conductor_f 1589
gcharlog_conductor_oo 16632
gcharlog_eval_raw 199248
gcharmat_tinverse 1592
gcharmatnewprec_shallow 1982
gcharnewprec 1778
gcharnewprec_i 1778
hnf_block 1211
is_gchar_group 2205
lfungchar 392
lll_block 726
localstar 623
mextraprec 2779
nfembedlog 195155
rowreverse 1211
safelgcols 2079
same_arg 4806
shallow_clean_rat 5138
shallowmatinsert 2546
sprk_get_ncp 2016
vaffect_shallow 4806
vec_v0 2546
vecan_gchar 693

Generated by: LCOV version 1.14