mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
17
tests/common/kv/fdb/TestFDBKVEngine.cc
Normal file
17
tests/common/kv/fdb/TestFDBKVEngine.cc
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "FDBTestBase.h"
|
||||
#include "fdb/FDBKVEngine.h"
|
||||
|
||||
namespace hf3fs::kv {
|
||||
|
||||
class TestFDBKVEngine : public FDBTestBase {};
|
||||
|
||||
TEST_F(TestFDBKVEngine, Construct) {
|
||||
ASSERT_EQ(db_.error(), 0);
|
||||
FDBKVEngine engine(std::move(db_));
|
||||
ASSERT_TRUE(engine.createReadonlyTransaction() != nullptr);
|
||||
ASSERT_TRUE(engine.createReadWriteTransaction() != nullptr);
|
||||
}
|
||||
|
||||
} // namespace hf3fs::kv
|
||||
Reference in New Issue
Block a user