mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
28
tests/fdb/SetupFDB.h
Normal file
28
tests/fdb/SetupFDB.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user