Skip to content

Commit dbdf819

Browse files
committed
Add configuration for lcov
Signed-off-by: Julien Jerphanion <[email protected]>
1 parent a698b17 commit dbdf819

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.lcovrc

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# lcov configuration file for mamba project
2+
# This configuration makes lcov more tolerant of template-generated symbols
3+
# and complex C++ mangled names from Catch2 template test cases
4+
5+
# Core settings for template-generated code tolerance
6+
geninfo_unexecuted_blocks = 1
7+
geninfo_unexecuted_lines = 1
8+
geninfo_complex_function = 1
9+
geninfo_no_exception_branch = 1
10+
11+
# Error handling - be very tolerant of template-related issues
12+
geninfo_ignore_errors = mismatch,source,unused,empty,negative
13+
geninfo_partial_coverage = 1
14+
15+
# Buffer and processing settings for complex symbols
16+
geninfo_buffer_size = 2097152
17+
geninfo_function_coverage = 1
18+
geninfo_branch_coverage = 1
19+
20+
# Checksum settings - disable for template-generated code
21+
geninfo_checksum = 0
22+
geninfo_no_checksum = 1
23+
24+
# Name adjustment settings
25+
geninfo_adjust_testname = 0
26+
geninfo_adjust_filename = 0
27+
28+
# Additional tolerance settings
29+
geninfo_use_checksum = 0
30+
geninfo_use_checksum_fallback = 0
31+
32+
# Handle complex C++ mangled names from template test cases
33+
geninfo_derive_function_end_line = 1
34+
geninfo_derive_function_end_line_algorithm = 1
35+
36+
# Be more permissive with line number mismatches
37+
geninfo_ignore_errors = mismatch,source,unused,empty,negative,invalid
38+
geninfo_ignore_errors = mismatch,source,unused,empty,negative,invalid,unused
39+
40+
# Specific settings for Catch2 template test cases
41+
geninfo_template_test_case_tolerance = 1
42+
geninfo_catch2_template_support = 1
43+
44+
# Coverage calculation settings
45+
lcov_branch_coverage = 1
46+
lcov_function_coverage = 1
47+
lcov_demangle_cpp = 1
48+
lcov_demangle_cpp_params = 1
49+
50+
# Remove settings
51+
lcov_remove_tolerance = 1
52+
lcov_remove_ignore_errors = mismatch,source,unused,empty,negative
53+
54+
# Summary settings
55+
lcov_summary_tolerance = 1
56+
lcov_summary_ignore_errors = mismatch,source,unused,empty,negative

0 commit comments

Comments
 (0)