1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/tools/llvm-cov/Inputs
Alex Lorenz 11e1f2366f [llvm-cov] Avoid 0% when reporting something that's 0/0
This commit makes llvm-cov avoid showing 0% (0/0) coverage for things
like file function coverage, etc. in reports and HTML output. This can happen
for files like headers that have macros but no functions. This commit makes
llvm-cov report - (0/0) instead.

rdar://29246480

Differential Revision: https://reviews.llvm.org/D26615

llvm-svn: 287539
2016-11-21 14:00:04 +00:00
..
binary-formats.canonical.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
binary-formats.macho32b
binary-formats.macho32l
binary-formats.macho64l
binary-formats.proftext
binary-formats.v1.linux64l
binary-formats.v2.linux32l
binary-formats.v2.linux64l
combine_expansions.covmapping
combine_expansions.proftext
copy_block_helper.gcda
copy_block_helper.gcno
double_dots.covmapping
double_dots.proftext
elf_binary_comdat.profdata
gcov47_compatibility.gcda
gcov47_compatibility.gcno
hideUnexecutedSubviews.proftext [llvm-cov] Track function and instantiation coverage separately 2016-09-19 00:38:23 +00:00
highlightedRanges.covmapping
highlightedRanges.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
highlightedRanges.profdata
instrprof-comdat.h
lineExecutionCounts.covmapping
lineExecutionCounts.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
lineExecutionCounts.proftext
multiple-files.covmapping [llvm-cov] Disable zlib compression in a test input, unbreaks bots 2016-09-08 01:19:29 +00:00
multiple-files.proftext [llvm-cov] Drop the longest common filename prefix from summaries 2016-09-08 00:56:43 +00:00
native_separators.covmapping
prefer_used_to_unused.covmapping
prefer_used_to_unused.cpp
prefer_used_to_unused.proftext
prevent_false_instantiations.covmapping
prevent_false_instantiations.cpp
prevent_false_instantiations.proftext
range_based_for.gcda
range_based_for.gcno
README
regionMarkers.covmapping
regionMarkers.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
regionMarkers.proftext
report.covmapping
report.profdata
showExpansions.covmapping
showExpansions.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
showExpansions.profdata
showProjectSummary.covmapping
showProjectSummary.proftext
showProjectSummary.test [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
showTabsHTML.covmapping
showTabsHTML.proftext
templateInstantiations.covmapping
templateInstantiations.profdata
test_-a_-b_-c_-u.cpp.gcov
test_-a_-b_-c_-u.h.gcov
test_-a_-b_-u.cpp.gcov
test_-a_-b_-u.h.gcov
test_-a_-b.cpp.gcov
test_-a_-b.h.gcov
test_-a.cpp.gcov
test_-a.h.gcov
test_-b_-f.output
test_-b.output
test_-f.output
test_exit_block_arcs.gcda
test_exit_block_arcs.gcno
test_file_checksum_fail.gcda
test_func_checksum_fail.gcda
test_long_file_names.output
test_long_paths.output
test_missing.cpp.gcov
test_missing.h.gcov
test_missing.output
test_no_gcda.cpp.gcov
test_no_gcda.h.gcov
test_no_gcda.output
test_no_options.cpp.gcov
test_no_options.h.gcov
test_no_options.output
test_no_output.output
test_no_preserve_paths.output
test_objdir.cpp.gcov
test_objdir.h.gcov
test_paths.cpp.gcov
test_paths.gcda
test_paths.gcno
test_paths.h.gcov
test_preserve_paths.output
test_read_fail.gcno
test.cpp
test.gcda
test.gcno
test.h
universal-binary
universal-binary.json [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
universal-binary.proftext
zeroFunctionFile.covmapping [llvm-cov] Avoid 0% when reporting something that's 0/0 2016-11-21 14:00:04 +00:00
zeroFunctionFile.h [llvm-cov] Avoid 0% when reporting something that's 0/0 2016-11-21 14:00:04 +00:00
zeroFunctionFile.proftext [llvm-cov] Avoid 0% when reporting something that's 0/0 2016-11-21 14:00:04 +00:00

These inputs were pre-generated to allow for easier testing of llvm-cov.

The files used to test the gcov compatible code coverage tool were generated
using the following method:

  test.gcno and test.gcda were create by running clang:
    clang++ -g -ftest-coverage -fprofile-arcs test.cpp

  test.cpp.gcov was created by running gcov 4.2.1:
    gcov test.cpp

The 'covmapping' files that are used to test llvm-cov contain raw sections
with the coverage mapping data generated by the compiler and linker. They are
created by running clang and llvm-cov:
  clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp
  llvm-cov convert-for-testing -o test.covmapping test

The 'profdata' files were generated by running an instrumented version of the
program and merging the raw profile data using llvm-profdata.
  ./test
  llvm-profdata merge -o test.profdata default.profraw