xref: /llvm-project/llvm/test/tools/llvm-cov/export_functions.test (revision a80d9ce5cfa1d109b895cd4837d0c1bb564775d7)
1# Test that llvm-cov export produces function data by default and that it can be
2# turned off with a flag.
3
4RUN: llvm-cov export %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata 2>&1 | FileCheck %s
5RUN: llvm-cov export %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -skip-functions 2>&1 | FileCheck -check-prefix=SKIP-FUNCTIONS %s
6
7CHECK: "functions":[
8SKIP-FUNCTIONS-NOT: "functions":[
9
10
11