[llvm] [memprof] Drop testing:: in a unit test (NFC) (PR #119636)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 15:51:12 PST 2024


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/119636

Note that we already have:

  using ::testing::IsEmpty;


>From e2a9171018733816fdae749996e7808dc28ddc57 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Wed, 11 Dec 2024 15:35:48 -0800
Subject: [PATCH] [memprof] Drop testing:: in a unit test (NFC)

Note that we already have:

  using ::testing::IsEmpty;
---
 llvm/unittests/ProfileData/MemProfTest.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/unittests/ProfileData/MemProfTest.cpp b/llvm/unittests/ProfileData/MemProfTest.cpp
index 456b093362b50f..4dcc50e41ec6b2 100644
--- a/llvm/unittests/ProfileData/MemProfTest.cpp
+++ b/llvm/unittests/ProfileData/MemProfTest.cpp
@@ -587,9 +587,9 @@ TEST(MemProf, RadixTreeBuilderEmpty) {
   CallStackRadixTreeBuilder<FrameId> Builder;
   Builder.build(std::move(MemProfCallStackData), &MemProfFrameIndexes,
                 FrameHistogram);
-  ASSERT_THAT(Builder.getRadixArray(), testing::IsEmpty());
+  ASSERT_THAT(Builder.getRadixArray(), IsEmpty());
   const auto Mappings = Builder.takeCallStackPos();
-  ASSERT_THAT(Mappings, testing::IsEmpty());
+  ASSERT_THAT(Mappings, IsEmpty());
 }
 
 // Verify CallStackRadixTreeBuilder can handle one trivial call stack.



More information about the llvm-commits mailing list