You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
projects
resources
runtimes
scripts
test
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen
DebugInfo
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
LTO
Linker
MC
Object
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO
Transforms
Unit
Verifier
YAMLParser
tools
dsymutil
gold
llvm-ar
llvm-cfi-verify
llvm-config
llvm-cov
Inputs
binary-formats.c
combine_expansions.cpp
copy_block_helper.m
cov-comdat.test
deferred-region.cpp
demangle.test
dir-with-filtering.test
double_dots.c
gcov47_compatibility.cpp
hideUnexecutedSubviews.test
ifdef.c
lit.local.cfg
llvm-cov.test
load-multiple-objects.test
multiple-files.test
multiple-objects.test
name_whitelist.test
native_separators.c
path_equivalence.c
prefer_used_to_unused.h
prevent_false_instantiations.h
range_based_for.cpp
report.cpp
scan-directory.test
showExpansions.cpp
showHighlightedRanges.cpp
showLineExecutionCounts.cpp
showProjectSummary.cpp
showRegionMarkers.cpp
showTabsHTML.cpp
showTemplateInstantiations.cpp
sources-specified.test
style.test
threads.c
universal-binary.c
warnings.h
zeroFunctionFile.c
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-dlltool
llvm-dwarfdump
llvm-dwp
llvm-extract
llvm-isel-fuzzer
llvm-lib
llvm-lit
llvm-lto
llvm-lto2
llvm-mc
llvm-modextract
llvm-mt
llvm-nm
llvm-objcopy
llvm-objdump
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbdump
llvm-profdata
llvm-rc
llvm-readobj
llvm-size
llvm-split
llvm-strings
llvm-symbolizer
llvm-xray
lto
obj2yaml
opt-viewer
sancov
sanstats
yaml2obj
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
47 lines
2.4 KiB
C++
47 lines
2.4 KiB
C++
// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -path-equivalence=/tmp,%S 2>&1 -show-region-summary -show-instantiation-summary | FileCheck %s
|
|
// RUN: llvm-cov report -show-functions %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -path-equivalence=/tmp,%S %s 2>&1 | FileCheck -check-prefix=FILT %s
|
|
// RUN: llvm-cov report -show-functions %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -path-equivalence=/tmp,%S %s does-not-exist.cpp 2>&1 | FileCheck -check-prefix=FILT %s
|
|
// RUN: not llvm-cov report -show-functions %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -path-equivalence=/tmp,%S 2>&1 | FileCheck -check-prefix=NO_FILES %s
|
|
|
|
// NO_FILES: Source files must be specified when -show-functions=true is specified
|
|
|
|
// CHECK: Regions Missed Regions Cover Functions Missed Functions Executed Instantiations Missed Insts. Executed Lines Missed Lines Cover
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: report.cpp 6 2 66.67% 4 1 75.00% 4 1 75.00% 13 3 76.92%
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: TOTAL 6 2 66.67% 4 1 75.00% 4 1 75.00% 13 3 76.92%
|
|
|
|
// FILT: File '{{.*}}report.cpp':
|
|
// FILT-NEXT: Name Regions Miss Cover Lines Miss Cover
|
|
// FILT-NEXT: ---
|
|
// FILT-NEXT: _Z3foob 3 1 66.67% 4 1 75.00%
|
|
// FILT-NEXT: _Z3barv 1 0 100.00% 2 0 100.00%
|
|
// FILT-NEXT: _Z4funcv 1 1 0.00% 2 2 0.00%
|
|
// FILT-NEXT: main 1 0 100.00% 5 0 100.00%
|
|
// FILT-NEXT: ---
|
|
// FILT-NEXT: TOTAL 6 2 66.67% 13 3 76.92%
|
|
|
|
void foo(bool cond) {
|
|
if (cond) {
|
|
}
|
|
}
|
|
|
|
void bar() {
|
|
}
|
|
|
|
void func() {
|
|
}
|
|
|
|
int main() {
|
|
foo(false);
|
|
bar();
|
|
return 0;
|
|
}
|
|
|
|
// Test that listing multiple functions in a function view works.
|
|
// RUN: llvm-cov show -o %t.dir %S/Inputs/report.covmapping -instr-profile=%S/Inputs/report.profdata -path-equivalence=/tmp,%S -name-regex=".*" %s
|
|
// RUN: FileCheck -check-prefix=FUNCTIONS -input-file %t.dir/coverage/tmp/report.cpp.txt %s
|
|
// FUNCTIONS: _Z3foob
|
|
// FUNCTIONS: _Z3barv
|
|
// FUNCTIONS: _Z4func
|