Files
wehub-resource-sync fc00954168
Build / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:49:10 +08:00

18 lines
333 B
C++

#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