1# 2# Copyright 2015-2016 Nest Labs Inc. All Rights Reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# 18# Description: 19# This file is an lcov configuration file based on the default 20# from /etc/lcovrc. The key difference is the inclusion of 21# 'genhtml_branch_coverage = 1' and lcov_branch_coverage = 1' to 22# ensure that branch coverage is reported. 23# 24 25# External style sheet file 26#genhtml_css_file = gcov.css 27 28# Coverage rate limits 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 39genhtml_overview_width = 80 40 41# Resolution of overview navigation 42genhtml_nav_resolution = 4 43 44# Offset for source code navigation 45genhtml_nav_offset = 10 46 47# Do not remove unused test descriptions if non-zero 48genhtml_keep_descriptions = 0 49 50# Do not remove prefix from directory names if non-zero 51genhtml_no_prefix = 0 52 53# Do not create source code view if non-zero 54genhtml_no_source = 0 55 56# Specify size of tabs 57genhtml_num_spaces = 8 58 59# Highlight lines with converted-only data if non-zero 60genhtml_highlight = 0 61 62# Include color legend in HTML output if non-zero 63genhtml_legend = 0 64 65# Include HTML file at start of HTML output 66#genhtml_html_prolog = prolog.php 67 68# Include HTML file at end of HTML output 69#genhtml_html_epilog = epilog.php 70 71# Use custom HTML file extension 72#genhtml_html_extension = html 73 74# Compress all generated html files with gzip. 75#genhtml_html_gzip = 1 76 77# Include sorted overview pages 78genhtml_sort = 1 79 80# Include function coverage data display 81#genhtml_function_coverage = 1 82 83# Include branch coverage data display 84genhtml_branch_coverage = 1 85 86# Specify the character set of all generated HTML pages 87genhtml_charset=UTF-8 88 89# Allow HTML markup in test case description text if non-zero 90genhtml_desc_html=0 91 92# Location of the gcov tool 93#geninfo_gcov_tool = gcov 94 95# Adjust test names if non-zero 96#geninfo_adjust_testname = 0 97 98# Calculate a checksum for each line if non-zero 99geninfo_checksum = 0 100 101# Enable libtool compatibility mode if non-zero 102geninfo_compat_libtool = 0 103 104# Specify whether to capture coverage data for external source 105# files 106#geninfo_external = 1 107 108# Use gcov’s --all-blocks option if non-zero 109#geninfo_gcov_all_blocks = 1 110 111# Specify compatiblity modes (same as --compat option 112# of geninfo) 113#geninfo_compat = libtool=on, hammer=auto, split_crc=auto 114 115# Adjust path to source files by removing or changing path 116# components that match the specified pattern (Perl regular 117# expression format) 118#geninfo_adjust_src_path = /tmp/build => /usr/src 119 120# Specify if geninfo should try to automatically determine 121# the base-directory when collecting coverage data. 122geninfo_auto_base = 1 123 124# Directory containing gcov kernel files 125lcov_gcov_dir = /proc/gcov 126 127# Location for temporary directories 128lcov_tmp_dir = /tmp 129 130# Show full paths during list operation if non-zero 131lcov_list_full_path = 0 132 133# Specify the maximum width for list output. This value is 134# ignored when lcov_list_full_path is non-zero. 135lcov_list_width = 80 136 137# Specify the maximum percentage of file names which may be 138# truncated when choosing a directory prefix in list output. 139# This value is ignored when lcov_list_full_path is non-zero. 140lcov_list_truncate_max = 20 141 142# Specify if function coverage data should be collected and 143# processed. 144lcov_function_coverage = 1 145 146# Specify if branch coverage data should be collected and 147# processed. 148lcov_branch_coverage = 1 149