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

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 18:09:41 PST 2024


Author: Kazu Hirata
Date: 2024-12-11T18:09:38-08:00
New Revision: 8420602bc21098a737708f35caf96e696f948503

URL: https://github.com/llvm/llvm-project/commit/8420602bc21098a737708f35caf96e696f948503
DIFF: https://github.com/llvm/llvm-project/commit/8420602bc21098a737708f35caf96e696f948503.diff

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

Note that we already have:

  using ::testing::IsEmpty;

Added: 
    

Modified: 
    llvm/unittests/ProfileData/MemProfTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ProfileData/MemProfTest.cpp b/llvm/unittests/ProfileData/MemProfTest.cpp
index 7dac0eb7ca87f2..8b700673814c3d 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