mirror of
https://github.com/deepseek-ai/3FS
synced 2025-05-28 01:01:12 +00:00
29 lines
541 B
C++
29 lines
541 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <gtest/gtest.h>
|
|
#include <memory>
|
|
#include <thread>
|
|
#include <utility>
|
|
|
|
#include "fdb/FDB.h"
|
|
#include "fdb/FDBConfig.h"
|
|
#include "fdb/FDBContext.h"
|
|
#include "tests/GtestHelpers.h"
|
|
|
|
namespace hf3fs::testing {
|
|
using namespace hf3fs::kv;
|
|
|
|
class SetupFDB : public ::testing::Test {
|
|
public:
|
|
static void SetUpTestSuite() {
|
|
static std::once_flag flag;
|
|
std::call_once(flag, [] {
|
|
static auto context = fdb::FDBContext::create({});
|
|
return;
|
|
});
|
|
}
|
|
};
|
|
|
|
} // namespace hf3fs::testing
|