aboutsummaryrefslogtreecommitdiff
path: root/absl/container/internal/raw_hash_set_test.cc
diff options
context:
space:
mode:
authorEvan Brown <ezb@google.com>2023-09-21 11:57:32 -0700
committerCopybara-Service <copybara-worker@google.com>2023-09-21 11:58:33 -0700
commit821756c32ee197556905a94910e631721113dbb3 (patch)
tree90ec4565125e57797e9e0d83f2f1835de2bd7d83 /absl/container/internal/raw_hash_set_test.cc
parente313f0eddd53ecebbfc057088a130a34acf6c1f8 (diff)
downloadabseil-821756c32ee197556905a94910e631721113dbb3.tar.gz
abseil-821756c32ee197556905a94910e631721113dbb3.tar.bz2
abseil-821756c32ee197556905a94910e631721113dbb3.zip
Replace BtreeAllocatorTest with individual test cases for copy/move/swap propagation (defined in test_allocator.h) and minimal alignment.
Also remove some extraneous value_types from typed tests. The motivation is to reduce btree_test compile time. PiperOrigin-RevId: 567376572 Change-Id: I6ac6130b99faeadaedab8c2c7b05d5e23e77cc1e
Diffstat (limited to 'absl/container/internal/raw_hash_set_test.cc')
-rw-r--r--absl/container/internal/raw_hash_set_test.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/absl/container/internal/raw_hash_set_test.cc b/absl/container/internal/raw_hash_set_test.cc
index 7588120a..4ee61220 100644
--- a/absl/container/internal/raw_hash_set_test.cc
+++ b/absl/container/internal/raw_hash_set_test.cc
@@ -2084,16 +2084,6 @@ TEST(Table, UnstablePointers) {
EXPECT_NE(old_ptr, addr(0));
}
-bool IsAssertEnabled() {
- // Use an assert with side-effects to figure out if they are actually enabled.
- bool assert_enabled = false;
- assert([&]() { // NOLINT
- assert_enabled = true;
- return true;
- }());
- return assert_enabled;
-}
-
TEST(TableDeathTest, InvalidIteratorAsserts) {
if (!IsAssertEnabled() && !SwisstableGenerationsEnabled())
GTEST_SKIP() << "Assertions not enabled.";