Initial commit

This commit is contained in:
dev
2025-02-27 21:53:53 +08:00
commit 815e55e4c0
1291 changed files with 185445 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#include <folly/experimental/coro/GtestHelpers.h>
#include "common/utils/AtomicValue.h"
namespace hf3fs::test {
namespace {
using namespace std::chrono_literals;
TEST(TestAtomicValue, Normal) {
AtomicValue<uint64_t> a;
ASSERT_EQ(a, 0);
a = 1;
ASSERT_EQ(a, 1);
AtomicValue<uint64_t> b = a;
ASSERT_EQ(b, 1);
}
} // namespace
} // namespace hf3fs::test