mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
This tests the parser and JSON format using the DRV files from the tests added in the previous commit. Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
34 lines
534 B
C++
34 lines
534 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <gmock/gmock.h>
|
|
|
|
#include "store-api.hh"
|
|
|
|
namespace nix {
|
|
|
|
class LibStoreTest : public virtual ::testing::Test
|
|
{
|
|
public:
|
|
static void SetUpTestSuite()
|
|
{
|
|
initLibStore(false);
|
|
}
|
|
|
|
protected:
|
|
LibStoreTest()
|
|
: store(openStore({
|
|
.variant =
|
|
StoreReference::Specified{
|
|
.scheme = "dummy",
|
|
},
|
|
.params = {},
|
|
}))
|
|
{
|
|
}
|
|
|
|
ref<Store> store;
|
|
};
|
|
|
|
} /* namespace nix */
|