mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
b107431816
Deduplicating code moreover enforcing the pattern means: - It is easier to write new characterization tests because less boilerplate - It is harder to mess up new tests because there are fewer places to make mistakes. Co-authored-by: Jacek Galowicz <jacek@galowicz.de>
26 lines
407 B
C++
26 lines
407 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();
|
|
}
|
|
|
|
protected:
|
|
LibStoreTest()
|
|
: store(openStore("dummy://"))
|
|
{ }
|
|
|
|
ref<Store> store;
|
|
};
|
|
|
|
|
|
} /* namespace nix */
|