chore(tvix/tests): Add OpenTemporaryStore() helper

Change-Id: Ia655175c255f9cf5a47e4e7a20373a4ba4315ed9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1753
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Kane York 2020-08-14 17:23:12 -07:00 committed by kanepyork
parent 737d192aec
commit 010dba3495
2 changed files with 74 additions and 7 deletions

View file

@ -10,6 +10,7 @@
#include "libstore/binary-cache-store.hh"
#include "libstore/mock-binary-cache-store.hh"
#include "tests/store-util.hh"
using ::testing::HasSubstr;
@ -17,13 +18,6 @@ namespace nix {
MakeError(InjectedError, Error);
class StoreTest : public ::testing::Test {
public:
static void SetUpTestSuite() {
google::InitGoogleLogging("--logtostderr=false");
}
};
class BinaryCacheStoreTest : public StoreTest {};
constexpr absl::string_view kXZHeader = "7zXZ";