Raphael Isemann | 8081428 | 2020-01-24 08:23:27 +0100 | [diff] [blame] | 1 | //===-- MemoryRegionInfoTest.cpp ------------------------------------------===// |
Pavel Labath | 048b3ec | 2017-02-22 10:37:57 +0000 | [diff] [blame] | 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Pavel Labath | 048b3ec | 2017-02-22 10:37:57 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "lldb/Target/MemoryRegionInfo.h" |
| 10 | #include "llvm/Support/FormatVariadic.h" |
| 11 | #include "gtest/gtest.h" |
| 12 | |
| 13 | using namespace lldb_private; |
| 14 | |
| 15 | TEST(MemoryRegionInfoTest, Formatv) { |
| 16 | EXPECT_EQ("yes", llvm::formatv("{0}", MemoryRegionInfo::eYes).str()); |
| 17 | EXPECT_EQ("no", llvm::formatv("{0}", MemoryRegionInfo::eNo).str()); |
| 18 | EXPECT_EQ("don't know", llvm::formatv("{0}", MemoryRegionInfo::eDontKnow).str()); |
| 19 | } |