1# 2# Copyright (c) 2023 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15# 16# /etc/lcovrc - system-wide defaults for LCOV 17# 18# To change settings for a single user, place a customized copy of this file 19# at location ~/.lcovrc 20# 21 22# Specify an external style sheet file (same as -css-file option of genhtml) 23# genhtml_css_file = gcov.css 24 25# Specify coverage rate limits (in %) for classifying file entries 26# HI: hi_limit <= rate <= 100 graph color: green 27# MED: med_limit <= rate < hi_limit graph color: orange 28# LO: 0 <= rate < med_limit graph color: red 29genhtml_hi_limit = 90 30genhtml_med_limit = 75 31 32# Width of line coverage field in source code view 33genhtml_line_field_width = 12 34 35# Width of branch coverage field in source code view 36genhtml_branch_field_width = 16 37 38# Width of overview image (used by --frames option of genhtml) 39genhtml_overview_width = 80 40 41# Resolution of overview navigation: this number specifies the maximum 42# difference in lines between the position a user selected from the overview 43# and the position the source code window is scrolled to (used by --frames 44# option of genhtml) 45genhtml_nav_resolution = 4 46 47# Clicking a line in the overview image should show the source code view at 48# a position a bit further up so that the requested line is not the first 49# line in the window. This number specifies that offset in lines (used by 50# --frames option of genhtml) 51genhtml_nav_offset = 10 52 53# Do not remove unused test descriptions if non-zero (same as 54# --keep-descriptions option of genhtml) 55genhtml_keep_descriptions = 0 56 57# Do not remove prefix from directory names if non-zero (same as --no-prefix 58# option of genhtml) 59genhtml_no_prefix = 0 60 61# Do not create source code view if non-zero (same as --no-source option of 62# genhtml) 63genhtml_no_source = 0 64 65# Replace tabs with number of spaces in source view (same as --num-spaces 66# option of genhtml) 67genhtml_num_spaces = 8 68 69# Highlight lines with converted-only data if non-zero (same as --highlight 70# option of genhtml) 71genhtml_highlight = 0 72 73# Include color legend in HTML output if non-zero (same as --legend option of 74# genhtml) 75genhtml_legend = 0 76 77# Use FILE as HTML prolog for generated pages (same as --html-prolog option of 78# genhtml) 79# genhtml_html_prolog = FILE 80 81# Use FILE as HTML epilog for generated pages (same as --html-epilog option of 82# genhtml) 83# genhtml_html_epilog = FILE 84 85# Use custom filename extension for pages (same as --html-extension option of 86# genhtml) 87# genhtml_html_extension = html 88 89# Compress all generated html files with gzip. 90# genhtml_html_gzip = 1 91 92# Include sorted overview pages (can be disabled by the --no-sort option of 93# genhtml) 94genhtml_sort = 1 95 96# Include function coverage data display (can be disabled by the 97# --no-func-coverage option of genhtml) 98# genhtml_function_coverage = 1 99 100# Include branch coverage data display (can be disabled by the 101# --no-branch-coverage option of genhtml) 102# genhtml_branch_coverage = 1 103 104# Specify the character set of all generated HTML pages 105genhtml_charset=UTF-8 106 107# Allow HTML markup in test case description text if non-zero 108genhtml_desc_html = 0 109 110# Specify the precision for coverage rates 111# genhtml_precision = 1 112 113# Location of the gcov tool (same as --gcov-info option of geninfo) 114# geninfo_gcov_tool = gcov 115 116# Adjust test names to include operating system information if non-zero 117# geninfo_adjust_testname = 0 118 119# Calculate checksum for each source code line if non-zero (same as --checksum 120# option of geninfo if non-zero, same as --no-checksum if zero) 121# geninfo_checksum = 1 122 123# Specify whether to capture coverage data for external source files (can 124# be overridden by the --external and --no-external options of geninfo/lcov) 125# geninfo_external = 1 126 127# Enable libtool compatibility mode if non-zero (same as --compat-libtool option 128# of geninfo if non-zero, same as --no-compat-libtool if zero) 129# geninfo_compat_libtool = 0 130 131# Specify compatiblity modes (same as --compat option of geninfo). 132# geninfo_compat = libtool = on, hammer=auto, split_crc=auto 133 134# Adjust path to source files by removing or changing path components that 135# match the specified pattern (Perl regular expression format) 136# geninfo_adjust_src_path = /tmp/build => /usr/src 137 138# Specify if geninfo should try to automatically determine the base-directory 139# when collecting coverage data. 140geninfo_auto_base = 1 141 142# Directory containing gcov kernel files 143# lcov_gcov_dir = /proc/gcov 144 145# Location of the insmod tool 146lcov_insmod_tool = /sbin/insmod 147 148# Location of the modprobe tool 149lcov_modprobe_tool = /sbin/modprobe 150 151# Location of the rmmod tool 152lcov_rmmod_tool = /sbin/rmmod 153 154# Show full paths during list operation if non-zero (same as --list-full-path 155# option of lcov) 156lcov_list_full_path = 0 157 158# Specify the maximum width for list output. This value is ignored when 159# lcov_list_full_path is non-zero. 160lcov_list_width = 80 161 162# Specify the maximum percentage of file names which may be truncated when 163# choosing a directory prefix in list output. This value is ignored when 164# lcov_list_full_path is non-zero. 165lcov_list_truncate_max = 20 166 167# Specify if function coverage data should be collected and processed. 168lcov_function_coverage = 1 169 170# Specify if branch coverage data should be collected and processed. 171lcov_branch_coverage = 1 172 173# Specify the regular expression of lines to exclude from branch coveragel 174# Default is 'LCOV_EXCL_BR_LINE'. 175lcov_excl_br_line = LCOV_EXCL_BR_LINE