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.0 lcov report (development 29712-7c8a932571) Lines: 1033 1048 98.6 %
Date: 2024-11-15 09:08:45 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 23982
_check_gchar_group 13237
bestS 623
check_gchar 7070
check_gchar_group 11431
check_gchar_i 9128
check_gchari 2079
check_localstar 13223
cleanup_vga 1323
cm_select 224
col_2ei 112
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 4011
gchar_identify_i 3941
gchar_identify_init 4011
gchar_internal 7070
gchar_log 188468
gchar_logm 190372
gchar_nflog 1904
gchar_snfbasis_shallow 623
gcharalgebraic 280
gcharduallog 1799
gchareval 3969
gchari_conductor 224
gchari_duallog 8708
gchari_eval 184681
gchari_lfun 1372
gcharinit 644
gcharisalgebraic 189
gcharisprincipal 188468
gcharlocal 497
gcharlog 70
gcharlog_conductor_f 1589
gcharlog_conductor_oo 16863
gcharlog_eval_raw 199339
gcharmat_tinverse 1573
gcharmatnewprec_shallow 1747
gcharnewprec 1806
gcharnewprec_i 1806
hnf_block 1211
is_gchar_group 8876
lfungchar 392
lll_block 726
localstar 623
mextraprec 2519
nfembedlog 194923
rowreverse 1211
safelgcols 2079
same_arg 4551
shallow_clean_rat 5050
shallowmatinsert 2323
sprk_get_ncp 2016
vaffect_shallow 4551
vec_v0 2323
vecan_gchar 693

Generated by: LCOV version 1.16