Files
lix/tests/unit/libstore-support/tests/libstore.hh
T
eldritch horrors ecfda8abe2 libstore: asyncify openStore
Change-Id: Ia152bfd2014851590328e732f434dff6695304bd
2025-02-08 12:45:15 +00:00

31 lines
525 B
C++

#pragma once
///@file
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "lix/libstore/store-api.hh"
#include "lix/libutil/async.hh"
namespace nix {
class LibStoreTest : public ::testing::Test {
public:
static void SetUpTestSuite() {
initLibStore();
}
protected:
LibStoreTest()
: store(aio.blockOn(openStore("dummy://")))
{ }
~LibStoreTest() noexcept(true) {}
AsyncIoRoot aio;
ref<Store> store;
};
} /* namespace nix */