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
eulerf_gchar 14
gchar_algebraic_basis 70
gcharlog 70
col_2ei 98
gchar_algebraicnormtype 154
gcharisalgebraic 189
gchar_algebraicoftype 210
cm_select 224
gchar_conductor 224
gchari_conductor 224
gcharalgebraic 280
gcharlocal 336
lfungchar 392
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
gcharlog_conductor_f 1589
gcharmat_tinverse 1592
gcharnewprec 1778
gcharnewprec_i 1778
gcharduallog 1799
gchar_Sval 1904
gchar_nflog 1909
gcharmatnewprec_shallow 1982
sprk_get_ncp 2016
check_gchari 2079
safelgcols 2079
is_gchar_group 2205
shallowmatinsert 2546
vec_v0 2546
mextraprec 2779
gchar_identify_i 3871
gchar_identify 3941
gchar_identify_init 3941
gchareval 3962
same_arg 4806
vaffect_shallow 4806
shallow_clean_rat 5138
embedcol 6657
check_gchar 6902
gchar_internal 6902
gchari_duallog 8540
check_gchar_i 8960
check_gchar_group 11193
check_localstar 12957
_check_gchar_group 12971
gcharlog_conductor_oo 16632
RgV_frac_inplace 23583
gchari_eval 184674
gchar_log 188440
gcharisprincipal 188440
gchar_logm 190344
nfembedlog 195155
gcharlog_eval_raw 199248
gaddmul 2476278

Generated by: LCOV version 1.14