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,17 @@
#include <gtest/gtest.h>
#include "common/utils/UtcTime.h"
namespace hf3fs::tests {
namespace {
TEST(UtcTime, testConvert) {
UtcTime now = UtcClock::now();
int64_t us = now.toMicroseconds();
UtcTime utc = UtcTime::fromMicroseconds(us);
ASSERT_EQ(us, utc.toMicroseconds());
}
} // namespace
} // namespace hf3fs::tests